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

Logpoint suspends/breaks the execution unexpectedly #1191

Closed
xpomul opened this issue Feb 2, 2022 · 2 comments
Closed

Logpoint suspends/breaks the execution unexpectedly #1191

xpomul opened this issue Feb 2, 2022 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@xpomul
Copy link

xpomul commented Feb 2, 2022

Describe the bug
I wanted to put a logpoint in my backend service to see on the console when it is called.
But sadly, when the execution reaches the respective line, execution is suspended. Only after resuming execution, the expected log message is printed.

To Reproduce
Steps to reproduce the behavior:

  1. Start VS Code
  2. Use "Remote-Containers: Clone Repository in Container Volume...“ and clone the https://github.com/xpomul/theia-boilerplate repository branch hello-world
  3. After some waiting to get everything installed, open hello-world-impl.ts and add a logpoint with the expression test in line 7
  4. Go to the Run/Debug view and select the Launch Backend launch configuration and start it
  5. Open a browser at http://127.0.0.1:3000 and run Edit > Say Hello

Log File
vscode-debugadapter-79e72f37.json.gz

VS Code Version: VS Code 1.63.2

Additional context
I am quite new to JavaScript/TypeScript development in VS Code - sorry if this is a dumb question/issue, but I have had a question on StackOverflow https://stackoverflow.com/questions/70938984/vs-code-logpoint-suspends-breaks-the-execution-unexpectedly that has been unanswered for two days now, so it seems at least not a straight-forward n00b thing...

@xpomul xpomul added the bug Issue identified by VS Code Team member as probable bug label Feb 2, 2022
@connor4312
Copy link
Member

This is because Their overwrites console.log such that it returns truthy (a promise) and triggers the breakpoint

@connor4312 connor4312 added this to the February 2022 milestone Feb 3, 2022
@xpomul
Copy link
Author

xpomul commented Feb 6, 2022

I can confirm that it’s fixed in the latest nightly. Awesome - thank you for the quick fix :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants