Debugger for custom language plugin

Hi,

We are developing a custom langauge plugin for IntelliJ for which we want to have debugging support with for breakpoints, step into, etc.
We googled for documentation, but weren't able to find anything reliable.

Is this documented somewhere? Are there any good examples that we can refer?

6 comments
Comment actions Permalink

Unfortunately, at this time we don't have a document describing how to implement a debugger for a custom-language plugin. However, we do have several open-source debugger implementations, such as https://github.com/JetBrains/intellij-community/tree/master/python/src/com/jetbrains/python/debugger

If you have specific questions on the debugger API, you're welcome to ask them here, and we will help.

0
Comment actions Permalink

Do you have a proper documentation on this now? 

0
Comment actions Permalink

This was the PR that added line break debugging to the Elixir plugin https://github.com/KronicDeth/intellij-elixir/pull/643

0
Comment actions Permalink

@Luke, what is the method used to communicate in this debugger? Is it using web sockets or Java Debug Wire Protocol (JDWP) to communicate ?

 

Is there a way to use the same jvm that runs IDEA to run the custom language?

0
Comment actions Permalink

It communicates using a TCP socket from the JVM to the BEAM (Erlang VM) that Elixir runs in.  In the BEAM it uses the built-in debugging libraries for Erlang, which also work for Elixir.

0

Please sign in to leave a comment.