Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Log Points #45962

Closed
2 tasks done
isidorn opened this issue Mar 16, 2018 · 2 comments
Closed
2 tasks done

Test: Log Points #45962

isidorn opened this issue Mar 16, 2018 · 2 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Milestone

Comments

@isidorn
Copy link
Contributor

isidorn commented Mar 16, 2018

Refs: #45128

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
@DanTup
Copy link
Contributor

DanTup commented May 2, 2018

FWIW, I think there may be an issue with the variable substitution in TypeScript (I've opened #49039).

@isidorn
Copy link
Contributor Author

isidorn commented May 2, 2018

Thanks, I have forwarded the issue to @roblourens so he can investage more closely on the debug adapter side.

@vscodebot vscodebot bot locked and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Projects
None yet
Development

No branches or pull requests

4 participants