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: make --inspect-wait default when debugging #775

Merged
merged 1 commit into from
Dec 27, 2022
Merged

feat: make --inspect-wait default when debugging #775

merged 1 commit into from
Dec 27, 2022

Conversation

Leokuma
Copy link
Contributor

@Leokuma Leokuma commented Dec 26, 2022

Fixes #774 and possibly makes #608 obsolete.

Please let me know if I should change or test something specific. I've tested with current and old Deno versions.

I had to change the argument received in the constructor because I needed to check the version of the Deno Server.

From what I observed (code below), getSettings === extensionContext.clientOptions.initializationOptions, so I adjusted the calls.

initializationOptions: getWorkspaceSettings,

new DenoDebugConfigurationProvider(getWorkspaceSettings),

@CLAassistant
Copy link

CLAassistant commented Dec 26, 2022

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.

LGTM, thanks

@bartlomieju bartlomieju merged commit 1816af1 into denoland:main Dec 27, 2022
bartlomieju pushed a commit that referenced this pull request Aug 25, 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
Unified the logic for selecting the appropriate debugging flag (--inspect-brk or --inspect-wait) based on the behavior of pull request feat: make --inspect-wait default when debugging #775.
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.

Debugger: should --inspect-wait be default?
3 participants