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

Bug 327270

Summary: Hitting a breakpoint during a step causes debug buttons to disable
Product: [WebTools] JSDT Reporter: Simon Kaegi <simon_kaegi>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Simon Kaegi <simon_kaegi>
Severity: normal    
Priority: P3 CC: Michael_Rennie, thatnitind
Version: 3.2Flags: thatnitind: review+
Target Milestone: 3.2.3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 326809    
Bug Blocks: 327278    
Attachments:
Description Flags
fix none

Description Simon Kaegi CLA 2010-10-07 14:54:57 EDT
+++ This bug was initially created as a clone of Bug #326809 +++

code from HEAD

debug the following snippet:

function Func(fval){
    this.__defineSetter__("value", function(val){
        value = val;  //bp here
    });
}

var myfunc = new Func("foo"); //bp here
myfunc.value = "foo2";

and step over until you hit the breakpoint in __defineSetter__. Notice that all of the debugging buttons (step over / into / out) are all disabled.

Taking a quick look revealed that we still think we are stepping in this case, so when the commands poll for enablement (canStep) we say no.

We should be handling the case of hitting a breakpoint while stepping - we already handle resuming while stepping.
Comment 1 Michael Rennie CLA 2010-10-07 15:23:51 EDT
Created attachment 180448 [details]
fix
Comment 2 Michael Rennie CLA 2010-10-19 16:22:24 EDT
applied patch to 3.2.3, please verify Nitin