This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218254 - paused debugging session is not always made active when multiple debugging session run
Summary: paused debugging session is not always made active when multiple debugging se...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 22:38 UTC by David Konecny
Modified: 2012-09-20 02:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2012-09-12 22:38:03 UTC
Make sure you have a build with fix for issue 218216. Now:
- set a breakpoint in the source code
- run project and breakpoint is hit; continue
- test project and breakpoint is hit; continue
so far everything is good
- now if I run project again I can (sometimes?) see that green current line is painted in the editor but I cannot do anything (step over/into; continue) because wrong debugging session is active. If this does not happen to you on first occasion just keep repeating Run followed by Test.

I would think that if one session gets paused while active session is running then debugged activates automatically the paused session. Or gives user some clue about it.

I'm marking this as P2 because it is hard to understand for user what's happening and why nothing is running nor debugging.
Comment 1 David Konecny 2012-09-12 22:45:29 UTC
Workaround: open "Sessions" view from Window->Debugging and activate right session manually.
Comment 2 Martin Entlicher 2012-09-14 15:06:36 UTC
For cases like this, it would be good to open the Sessions view automatically, as suggested in issue #133705 IMHO.

Java debugger sets the current session to itself when it gets suspended, JavaScript debugger should do the same.
Comment 3 Martin Entlicher 2012-09-19 09:09:20 UTC
Should be fixed by changeset:   233645:dcda4ae65e6d
http://hg.netbeans.org/web-main/rev/dcda4ae65e6d
Comment 4 Quality Engineering 2012-09-20 02:25:23 UTC
Integrated into 'main-golden', will be available in build *201209200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dcda4ae65e6d
User: mentlicher@netbeans.org
Log: #218254: Set the current session when the debugger gets paused.