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:
Go version:
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!
请先登录再写评论。
"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
Please note: don't forget about XBreakpointType.isSuspendThreadSupported
Thank you very much!
Kind regards.