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 79051 - Documented syntax for evaluating expressions in Print Text field of Breakpoint customizers is wrong.
Summary: Documented syntax for evaluating expressions in Print Text field of Breakpoin...
Status: RESOLVED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Patrick Keegan
URL:
Keywords:
Depends on:
Blocks: 79061
  Show dependency tree
 
Reported: 2006-06-26 05:19 UTC by _ sandipchitale
Modified: 2007-08-08 15:18 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 _ sandipchitale 2006-06-26 05:19:36 UTC
The online help for line breakpoint customizer says:

"For Java breakpoints, the Print Text property can contain seven standard tags 
and a special notation for printing the value of an expression, (for example, 
{$i + j}). The values of all tags are evaluated within the current context. 
Some tags can be used for specific breakpoint types only, and some tags have 
different meanings in different situations."

However looking at the code in 
org.netbeans.modules.debugger.jpda.ui.BreakpointOutput it seems the syntax 
should be {= expression }. Without correct documentation the user has no way 
of knowing the correct syntax.
Comment 1 Martin Entlicher 2006-06-26 11:44:52 UTC
John, can you please look at it? It's still wrong in both trunk and 5.5 branch.
Thanks.
Comment 2 Jiri Kovalsky 2006-06-26 15:24:33 UTC
Please note that this is M1 blocker which means it must be fixed by June 30, 2006.
Comment 3 John Jullion-ceccarelli 2006-06-26 15:49:18 UTC
agreed. will be done by then.
Comment 4 John Jullion-ceccarelli 2006-06-27 17:01:03 UTC
Does this mean that the correct text should be as follows:

"For Java breakpoints, the Print Text property can contain seven standard tags 
and a special notation for printing the value of an expression, (for example, 
{=$i + j})."
Comment 5 Martin Entlicher 2006-06-27 17:24:45 UTC
John, there is no '$' any more. All is good, but just '$' needs to be replaced
with '='. Thanks.
Comment 6 John Jullion-ceccarelli 2006-06-27 17:41:32 UTC
fixed in trunk. will port to branch as well.
Comment 7 John Jullion-ceccarelli 2006-06-27 17:54:28 UTC
Fixed in branch too.
Comment 8 Jiri Kovalsky 2006-06-28 08:29:24 UTC
Verified in both trunk (#200606271800) and 5.5 (#200606280200) builds of
NetBeans. Thank you John for fixing this fast.
Comment 9 _ sandipchitale 2006-09-15 17:06:36 UTC
Sorry to reopen this.

There is one more place where it shows the wrong syntax. See the last line the 
table in topic "Printing a Breakpoint Message". It says.

{$"expression"}

in the last line of the Tag column. The priority could be reduced. 

Should be definitely fixed in trunk (6.0).
Comment 10 Patrick Keegan 2006-09-25 17:16:24 UTC
Per Sandip's OK lowered priority. Will fix after merge of release55 docs to trunk.
Comment 11 Patrick Keegan 2007-08-08 15:18:19 UTC
Fixed

changed 
{$"expression"} 
to 
{="expression"}