I am working on a custom debug view in an Eclipse plugin. In this view, I need to know when we are in debug mode and if a breakpoint is currently hit.
At the moment I have this working when my view is active by listening for the various debug events in DebugPlugin and IBreakpointManager. This works when my view has already been opened and the plugin is activated, but if my view is opened during a debug session then it has no way of knowing if a debug session has started or not.
Is there any way to explicitly check if a debug session is in progress? One possibility is to force my plugin to start automatically when Eclipse loads but I would rather avoid that.
Any ideas?
Thanks, Alan