-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuestestplan-item
Milestone
Description
Refs: #45128
- anyOS @alexandrudima
- anyOS @RMacfarlane
Complexity: 3
In this milestone we've added support for LogPoints. A LogPoint is basically a breakpoint that does not result in a "break" in the debugger but instead "logs" a message to the console. A Log Point is represented by a "diamond" shaped red icon. The "log message" is the text that gets logged. Expressions within curly brackets are evaluated and their (string) result replaces the curly brackets in the log message.
Example:
this log message shows the actual value of the variable 'x': { x }
LogPoints support the "condition" and the "hit count expression" too.
Verify:
- You can add log points via the glyph margin context menu and via the command palette
- You can transform an existing breakpoint to a log point by adding a log message
- You can edit the log message of a log point
- Once you start a debug session which does not support log points they show up as unsupported
- When running a program with LogPoints with Node Debug (both protocols), LogPoints does not result in a break in the debugger but instead log the message to the console
- Add a condition and/or hit count expression to a LogPoint and verify that the log message only appears if the condition evaluates to true and the hit count condition is reached.
- You get simple inteli-sense when inside the currly brackets {}. Or when adding conditions to a conditional breakpoint
Metadata
Metadata
Assignees
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuestestplan-item