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?

0
6 comments

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
Avatar
Permanently deleted user

Thanks Dmitry!

0
Avatar
Permanently deleted user

Do you have a proper documentation on this now? 

0

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

0
Avatar
Permanently deleted user

@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

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.