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 148411 - Need call a command twice to perform it on a line with a breakpoint
Summary: Need call a command twice to perform it on a line with a breakpoint
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 18:19 UTC by Roman Mostyka
Modified: 2008-11-17 23:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of example JavaScript file. (79.00 KB, image/jpeg)
2008-09-25 18:20 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-25 18:19:54 UTC
1. Create a web application with JSF framework.
2. Add a JavaScript file with 2 functions one of which is invoked from another.
3. Add first breakpoint to the first function before call of the second function.
4. Add second breakpoint in the beginning of the second function.
5. Debug application and do the action, which suspends debugger on the first breakpoint.
6. Press F8 to step over until call of the second function.
7. Press F7 to step into the second function.
8. When debugger on the line with breakpoint press F8 to step over or Ctrl + F7 to step out.

Result: Debugger is still on the same line. If there is no breakpoint everything is fine, but with breakpoint debugger
doesn't perform a command, user have to call this command twice, in spite of fact that debugger has already suspended
one time on the line with breakpoint.
Comment 1 Roman Mostyka 2008-09-25 18:20:38 UTC
Created attachment 70614 [details]
Screenshot of example JavaScript file.
Comment 2 Quy Nguyen 2008-09-25 19:29:03 UTC
This appears to be a Firebug issue.  The key parts are stepping into a function and also having a breakpoint on the
first line of said function.

See:
http://code.google.com/p/fbug/issues/detail?id=1179&sort=-id
Comment 3 _ deva 2008-09-25 19:34:44 UTC
In case of IE, the debugger will suspend on each statement not line when you step. Did you have multiple statements in
the line where in you had to step twice.

If not, please give me the exact line numbers where you had breakpoint and where you had to step twice. I have your
webapplication2 project which you had attached for a different bug
Comment 4 Roman Mostyka 2008-09-26 10:19:40 UTC
I have only one statement per line. You can see this on screenshot.
And it doesn't matter what line, you also can see on screenshot that debugger suspends on line "var y = 2;", but I also
tried on line "var x = 1;" and had the same result.
Comment 5 Quy Nguyen 2008-09-26 17:46:50 UTC
As I mentioned earlier, this is a Firefox-only issue due to a problem in Firebug.  See the Firebug issue that I linked.
Comment 6 Quy Nguyen 2008-11-17 23:48:26 UTC
This is dependent on Firebug.  It does not appear that this issue has been fixed by Firebug yet, and there is no time
line for resolving this issue.