Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 291723

Summary: [breakpoints] Debugger should have option to auto-step / auto-run after a timeout
Product: [Eclipse Project] JDT Reporter: Neale Upstone <neale>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P4 CC: Michael_Rennie, pawel.1.piech
Version: 3.5Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Neale Upstone CLA 2009-10-08 06:31:53 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: 3.5.0

Imagine that you're stepping through some code (could be Java via JNI/JNA, or C/C++) that manipulates windows on the desktop, or manages multiple desktops (in my case it's because I'm using Win32's CreateDesktop/SwitchDesktop features to create a 'kiosk mode').


Reproducible: Always

Steps to Reproduce:

Because your IDE present on the default desktop, any interaction with the IDE:
a) requires that desktop to be the visible one
b) requires your IDE to have input focus

This causes the following problems:
1) Switching to the IDE to continue or step changes teh state of the desktop
2) If you have created another desktop and switched to it, then hit a breakpoint, you're stuffed if there is deliberately no way of switching back (i.e. kiosk mode).

The solution could have two elements the first one being 'required' the second, more complex one, a 'nice to have':
1) Create a 'breakpoint timeout' feature which is triggered when stopped at a breakpoint.  After the timeout (configurable, say 10 seconds), a dialog pops up, saying "Auto continue enabled - press cancel within 5 seconds to abort".  If this isn't aborted, then all further breakpoints get automatically auto continued.

2) Now the complex bit. Why not just disable breakpoints before the first continue above?  Well, it's because those breakpoints are areas where you'd want to know what's going on, but may not be able to interact with the IDE at those points.  The nice to have here would be to be able to review the process state at each of those breakpoints (i.e. a mini-replay function).  Naturally the scope of what is recorded at each of those points would have to be constrained.
Comment 1 Pawel Piech CLA 2011-06-07 17:34:52 EDT
Debugger specific breakpoint behavior.  It would be easier to implement if there was a breakpoint actions framework in place.  Complicated feature still and not with a lot of payoff.
Comment 2 Michael Rennie CLA 2011-06-08 13:06:47 EDT
There are no plans to implement this. Patches are welcome.