jtulach commented on code in PR #9732:
URL: https://github.com/apache/netbeans/pull/9732#discussion_r4385734729
##########
java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/BreakpointOutput.java:
##########
@@ -375,13 +375,18 @@ private void printOutEvent(DebuggerConsoleIO io, String
format, JPDABreakpointEv
printText = selectCondition(printText, threadStartedCondition,
false);
}
}
+
+ int printLocals = printText.indexOf(localsPattern);
Review Comment:
> locals are always printed after the message.
Right. That's the intention. I considered it, but dumping all the local
variables (inherently multi line) in the middle of the (single line) message
seem inappropriate.
> a second `{locals}` is printed literally.
Should it be also removed? I guess we don't need to dump the variables
twice, right?
> mentioned anywhere a user would see it
Where do you want me to add a reference to `{locals}`? If there is some
suitable place I happily add some text there. However I think the whole
`BreakpointOutput` infrastructure `{=expr}`, `{className}`, etc. is mostly
undocumented. Which my be the reason why not many people found they can
configure log points themselves.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists