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 11710 - "Line breakpoint->Print text" does not print my variable if "Suspend Debugging" is OFF
Summary: "Line breakpoint->Print text" does not print my variable if "Suspend Debuggin...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-24 14:35 UTC by David Konecny
Modified: 2003-06-30 17:26 UTC (History)
0 users

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 2001-04-24 14:35:57 UTC
In Add Breakpoint dialog I specified my own variables in Print Text line. The 
variables are correctly displayed only in case the "Suspend Debugging" is set. 
If it is not set (means I do not want to stop at breakpoint, just dump the value 
of variable into Output Window) I always get that value of variable is "null".

Hey Debugger Guys!
I must say this is really cool feature!! If I did not discover this small bug, I 
would run to nbusers to tell it everybody, because it does not seems to be well 
known feature, does it? I think lot of us do debug programs with some 
System.out.println here and there. And this feature makes this debugging 
technique extremely comfortable - I can use it now without any change in my 
code, without any recompilling. And what's more, I can change my debugging 
messages during runtime, what saves my time!! because otherwise I have to stop 
program, change my System.out.println, compile it, start it, reproduce some 
situation.

I think there are a few things which should be improved to made the working with 
Print Text more comfortable like:
* in dialog "Add Breakpoint", the Print Text should be larger, or better 
multiline
* in Debugger Window->Variables, right mouse click on any variable offer me 
"Create Fixed Watch" and there might be also something like "Create 
Non-Suspending Line Breakpoint with the value of this variable in Print Text"
* what might be also useful is to print "variable.toString()" to the output 
window. This is what I often print in my System.out.println().
* to dump all class variables of given variable into Output Window
* and probably much more
Comment 1 Jan Chalupa 2001-05-05 21:20:41 UTC
Target milestone -> 3.3
Comment 2 Daniel Prusa 2001-05-10 08:00:11 UTC
fixed in main trunk
Comment 3 Jan Stola 2001-05-22 09:28:31 UTC
Verified in Netbeans build 193.
Comment 4 Quality Engineering 2003-06-30 17:26:42 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.