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

feat: allow --inspect-wait when debugging test #893

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

jeiea
Copy link
Contributor

@jeiea jeiea commented Aug 19, 2023

Motivation

vscode_deno offers a code lens action "Run Test | Debug". However when clicking the "Debug", it triggers a breakpoint which an user did not set.

Changes made

Testing

Tested on windows, not sure about other OS but I think there should be no problem.

Notes for Reviewers

The breakpoint continues to be triggered only on the first time and not from the second. I'm not sure about underlying cause.

@CLAassistant
Copy link

CLAassistant commented Aug 19, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nayeemrmn please review

Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The breakpoint continues to be triggered only on the first time and not from the second. I'm not sure about underlying cause.

That's not happening for me, but I am seeing after the first run that VSCode defaults to having the debug console open but after future runs it defaults to the terminal where you can see the test results. Maybe that's what you're seeing? Either way tests are being run from the first time, so looks good.

@bartlomieju bartlomieju merged commit 9f398ee into denoland:main Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants