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 85024 - Suuport additional tags in the Printing a Breakpoint Message dialog.
Summary: Suuport additional tags in the Printing a Breakpoint Message dialog.
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 17:19 UTC by _ sandipchitale
Modified: 2006-09-15 17:26 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 _ sandipchitale 2006-09-15 17:19:32 UTC
There are several useful tags I would like to see supported in Print Text 
field of breakpoint customizers:

{callingMethodName[0]}, {callingMethodName[1]} etc to log the callers of the 
context method. I tried to something like this:

{=new Throwable().getStackTrace()[1].getMethodName()}

but I keep getting an exception. I will file a separate bug for that.

--

{classLoaderName} - name of the class loader of the context class.

{classLoaderToString} - toString value of the class loader of the context 
class.

--
Similarly abilty some function like this:

{uniqueID(variableName)} or {uniqueID(this)} where unique id is the id 
returned by:

http://java.sun.com/products/jpda/doc/jdi/com/sun/jdi/ObjectReference.html#uniq
ueID()
Comment 1 _ sandipchitale 2006-09-15 17:26:11 UTC
I should be able to use the {uniqueID(this)} in the condition of the 
breakpoint also. This could help me stop at a breakpoint when the instance on 
which the breakpoint is hit is different.