0

This is a follow-up question to @MatthewD's question 'How do I write to the Netbeans Debugger Console (in Java)?'

For a NetBeans breakpoint, it is possible to print line number, class name and thread name using {lineNumber}, {className} and {threadName} respectively. Is there also a simmilar expression for method name?

I have unsuccessfully tested {method} and {methodName}, and searched through NetBeans JPDA API and NetBeans Wiki, but found nothing. I'd rather write {methodName} in the breakpoint's properties than the name itself, that cannot be copy-pasted or used as template.

1 Answer 1

1

{methodName} works fine for me, on Netbeans 7.0.1.

The only reference I found about these keywords is in a bug ticket :

The full list is :

{threadName}
{className}
{methodName}
{lineNumber}
{=EXPRESSION}
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I don't really get it. After your post, I have tested it today again (NetBeans 7.2) and it works... Probably, lack of sleep!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.