Display Threads tab for debugger

Hello,


Maybe I'm missing something but how could I display the Threads tab for a custom language debugger?
I've attached the Java version and the custom language debugger screenshots.

Java version:
snapshot123.png

Go version:
snapshot122.png


The sources are available here: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/tree/debugger and in this PR: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/588


Thank you!

3 comments
Comment actions Permalink

"Threads" is not part of platform. And is not part of XDebugger API.
So, it is not easy, but possible — just create and register your own implementation of "content".

1) Override XDebugProcess.createTabLayouter
2) Implement XDebugTabLayouter
3) Register content. RunnerLayoutUi.createContent, RunnerLayoutUi.addContent See https://github.com/JetBrains/intellij-community/blob/master/java/debugger/impl/src/com/intellij/debugger/ui/DebuggerSessionTab.java#L163

0
Comment actions Permalink

Please note: don't forget about XBreakpointType.isSuspendThreadSupported

0
Comment actions Permalink

Thank you very much!


Kind regards.

0

Please sign in to leave a comment.