Community
Participate
Working Groups
Include a new template for 'Debugging by writing to console'. This template should be available (only?) in the condition editor of a conditional breakpoint - and possibly with pressing ctrl+space in an empty condition editor. Possible template (PrintToConsole): System.out.println("${cursor}"); return false; Do we have a context to include this template only in the conditional breakpoint editor?
I would create analogons to the existing sysout, syserr, and systrace templates, e.g. debugout, debugerr, debugtrace. > Do we have a context to include this template only in the conditional > breakpoint editor? Not yet. Keeping this bug in JDT/Text for now, but parts (or maybe all) of the fix will probably go to debug.
>Keeping this bug in JDT/Text for now, but parts (or maybe all) of the fix will >probably go to debug. So it is.
The fix is simple once a context for Debug (or Java Debug) templates is in place. See bug 20597 comment 10.
(In reply to comment #3) > The fix is simple once a context for Debug (or Java Debug) templates is in > place. See bug 20597 comment 10. There are currently several limitations that prevent us from going ahead with this (e.g. no proposals without prefix, variables not evaluated, template preference page limitations). For now we defer this to be a '3.8 candidate'. Until then, people can simply define the template as normal Java editor template.
The "Create Tracepoint" action from bug 71020 comment 21 will allow to create a tracepoint with less manual steps than new templates would. *** This bug has been marked as a duplicate of bug 71020 ***