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 154553 - Unable to view java script variable when server side is enabled.
Summary: Unable to view java script variable when server side is enabled.
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ deva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 05:48 UTC by elishae
Modified: 2012-09-03 08:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description elishae 2008-12-04 05:48:22 UTC
In my web project, I've selected both* 'Debug Web application(Server Side Java)' and 'Debug Web application(Client side
JavaScript)' under project properties.

When I run the debugger, after setting a break-point in java-script code, debugger stops at the break-point as expected.

so far, so good. 

However, I'm NOT able to see any java script variables in the Local variables window. This is a serious limitation, as
far as I'm concerned.

FYI, Java script variables are displayed if i select ONLY the client side debugging and UNSELECT server-side debugging.

It is required to display java-script variables in addition to server-side variables, when both the options are selected.
Comment 1 _ krystyna 2008-12-11 21:50:56 UTC
When your server session is active, you will not be able to see the local variables of the client side session.
The same debugging output windows are used for either server and client side, so you need to manage your sessions.
Try this: when you run debug and the toolbar suspends (on javascript code), switch to the Local Variables window to 
verify the variables, open the Debugging > Sessions > Window to verify the SUSPENDED session is Javascript 
(has the brightest green icon). Context menu on the server side session (Language Java) and select 
"Make Current". You will see the Local Variables window no longer display. Go back to the sessions window and 
make current the javascript session again.  See the local variables appear again. 

I will change this to an enhancement for better session management.
Comment 2 elishae 2009-01-22 06:59:53 UTC
Will this be addressed in 7.0?
Comment 3 Martin Entlicher 2012-09-03 08:32:10 UTC
A new implementation of JavaScript debugger is in trunk. Closing old issues.