How to support breakpoint options?
Hello,
I'm working on the go plugin for IntelliJ IDEs and I've been implementing GDB support for it.
We are close to a release but I would like to wrap-up some things before doing so.
As you can see in this image
there's a bunch of options that a Java app is supporting. I don't want / need all of them but I do want support for:
- pass count
- condition
This is how the options look like currently:
Also, I've tested this to be cross-IDE so far so it would be great if those options could be added without loosing this capability.
You can find the issue here: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/565
Thank you for your time and help!
Please sign in to leave a comment.
Hello,
you need to create an implementation of XBreakpointProperties and override 'createProperties' and 'createCustomPropertiesPanel' methods in your
implementation of XLineBreakpointType accordinly.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"
Do you know of any other plugin that implements this or have some samples on how that can be done?
I've found this one: https://github.com/JetBrains/intellij-community/blob/master/python/src/com/jetbrains/python/debugger/PyExceptionBreakpointType.java can it be used to learn more from it?
Thank you.
Yes, you use PyExceptionBreakpointType as an example. However if your breakpoints are line breakpoints you don't need to override methods
'addBreakpoint' and 'createDefaultBreakpoint'.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"