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

fix vscode debugger #14995

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix vscode debugger #14995

wants to merge 1 commit into from

Conversation

RiskyMH
Copy link
Contributor

@RiskyMH RiskyMH commented Nov 5, 2024

What does this PR do?

The vscode debugger wasn't being enabled correctly unless using --inspect, as such things weren't working such as showing scoped variables.

How did you verify your code works?

manual testing

@robobun
Copy link

robobun commented Nov 5, 2024

@@ -1854,7 +1854,7 @@ pub const VirtualMachine = struct {
},
}

if (debugger != .unspecified) {
if (this.debugger != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you verify this doesn't cause us to start with the debugger enabled when it's not actively in use?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't managed to get any indication this is started unless using --inspect or the BUN_INSPECT env var.

It is hard to work out however because its the this.debugger = Debugger stage that starts the connection (with print).

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.

3 participants