Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ can now debug the Agent #432

Merged
merged 1 commit into from
Jan 29, 2024
Merged

IntelliJ can now debug the Agent #432

merged 1 commit into from
Jan 29, 2024

Conversation

steveyegge
Copy link
Contributor

I wanted a decent debugging setup, so I modified the agent to be able to be debugged by IntelliJ. This lets me set breakpoints on both sides of the protocol.

This was a fairly straightforward change, but I have only used it for a few hours, so there may be issues. However it is very useful to be able to debug the agent, so I am committing it now.

There are two modes of operation supported: Cody can spawn the agent or IntelliJ can spawn it. The latter allows Cody to talk to any remote agent.

I added detailed instructions on how to set this up in CONTRIBUTING.md.

Test plan

Locally/manually tested. This is a dev-only code path, and tricky to unit test.

I wanted a decent debugging setup, so I modified the agent to be able
to be debugged by IntelliJ. This lets me set breakpoints on both sides
of the protocol.

This was a fairly straightforward change, but I have only used it for
a few hours, so there may be issues. However it is very useful to be
able to debug the agent, so I am committing it now.

There are two modes of operation supported: Cody can spawn the agent
or IntelliJ can spawn it. The latter allows Cody to talk to any remote

agent.

I added detailed instructions on how to set this up in CONTRIBUTING.md.
@steveyegge
Copy link
Contributor Author

See also the agent-side PR.

Copy link
Contributor

@pkukielka pkukielka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

In fact, looks very good :)

@steveyegge steveyegge merged commit 53ad24a into main Jan 29, 2024
1 of 2 checks passed
@steveyegge steveyegge deleted the stevey/debug-agent branch January 29, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants