Bug 30463 - Debugger Keys F5 to F8 only enabled when debug view is open
Summary: Debugger Keys F5 to F8 only enabled when debug view is open
Status: RESOLVED DUPLICATE of bug 31181
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-29 02:51 EST by Carl Rosenberger CLA
Modified: 2003-02-12 09:48 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Rosenberger CLA 2003-01-29 02:51:07 EST
The debugger keys F5 to F8 to StepIn, StepOver, StepOut and Continue only work 
when the debug view is open. The behaviour has changed from previous Eclipse 
versions, possibly on purpose. I think this is inconvenient because I often 
like to have the maximum space of my monitor available to look at code.
Comment 1 Darin Wright CLA 2003-01-29 10:48:21 EST
The keys actually work - it's just that the source location is not updated 
unless the debug view is open. You'll notice that the variables keep updating 
even when the debug view is closed. 
Comment 2 Darin Wright CLA 2003-01-29 10:53:59 EST
Ah - but once you leave the current stack frame, things stop working.

This is intentional. We intended that debugging should only work while the 
debug view is open (it is our hint that the user wants to debug, update source 
pointers, etc). This means that when you are debugging and switch back to the 
Java perspective, you are not bothered by the debugger as you modify code, etc. 
Comment 3 Darin Wright CLA 2003-01-29 10:55:04 EST
marking as later for post 2.1 consideration. I will file a seperate bug, as the 
step actions should not be enabled when the debug view is closed.
Comment 4 Jared Burns CLA 2003-01-29 18:33:41 EST
The problem is worse than described. Stepping doesn't work even if the debug
view *is* open, but not visible.
Comment 5 Darin Wright CLA 2003-01-30 08:56:53 EST
This is likely because optimizations were made such that the view only updates 
when visible (thus it will only have a valid selection when visible).
Comment 6 Russell Gonsalves CLA 2003-01-31 08:22:51 EST
Perhaps it's some setting of mine, but let me describe what I see...

I switch to the debug perspective.  I go to the toolbar and select a launch 
config to debug from the dropdown attached to the "bug" icon.  I already have 
a breakpoint set.  Before the breakpoint it hit, some console output is done.  
The next thing that happens is the breakpoint is hit.  At this point I can no 
longer press F5, F6, F8.  This used to work pre-M4.  So, at this point I have 
no option but to click on the Debug view and only then can I press F5/6/8.  
Just a quick mouse click or so, but from usability standpoint it much to be 
desired.  It's no longer: press the "bug" (to debug again), and then start 
hitting F5/6 to step into/over, which is the normal flow of operations.

Russell
Comment 7 Darin Wright CLA 2003-01-31 08:55:38 EST
Re-opening for investigation.
Comment 8 Russell Gonsalves CLA 2003-01-31 09:02:20 EST
Darin,

Just thought I'd mention that I do have Console preferences "Show when program 
writes to standard out" and "Show when program writes to standard error" set.  
And, if I do turn them off (as I just did) it appears not to be an issue. 

Thanks,

Russell

Comment 9 Darin Wright CLA 2003-02-05 11:53:50 EST
Step keys work for me when the debug view is present but not visible (as long 
as the view was made visible before launching a program). If the debug view is 
never relaized, source will not be displayed properly either, as this is the 
view that drives source display, as a thread suspends and a stack frame is 
selected.
Comment 10 Darin Wright CLA 2003-02-11 16:55:56 EST
Marking as duplicate - fixed via bug 31181. As long as the debug view is open 
in the current perspective (NOTE: does not need to be visible), debugging 
works. The step actions will be enabled, and views will update.

This fix will be in builds greater than 20030211. 

*** This bug has been marked as a duplicate of 31181 ***
Comment 11 Russell Gonsalves CLA 2003-02-11 22:52:04 EST
Please note that in all my encounters with this bug (I'm running M5), the debug 
view has always been open and the debugging perspective selected.  My scenario 
is: both debug and console view opens.  I run my program to completion.  Then 
pressed the "bug" toolbar button to restart.  It hits a breakpoint.  Output has 
been done to the console window which is on top of the debug view.  At this 
point if I press the F5/6/8 nothings happens.  If I press the Debug tab / view  
and press the Console tab, the keys work.  I can now press F8 (no other breaks 
are set) run to completion then press the "bug" button again to debug again and 
the same situation arises.  If I click on the debug view instead of console 
view there's no problem.  Apologies, Darin, if this sounds like a rehash of 
what I've already said in this entry - just want to be sure that this didn't 
work before your fix and works after your fix.  Thanks, Russell.
Comment 12 Darin Wright CLA 2003-02-12 09:48:19 EST
Yes - this now works - you can press the bug button with the debug view hidden, 
and then use the step keys.