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

Have breapoints and debugging work automagically #16835

Open
GerbenRampaart opened this issue Jan 28, 2025 · 1 comment
Open

Have breapoints and debugging work automagically #16835

GerbenRampaart opened this issue Jan 28, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@GerbenRampaart
Copy link

What is the problem this feature would solve?

Since vscode probably is the most used editor for Bun. I sure would love it if debugging would work seamlessly.

What I mean is that in actuality; I don't want to setup a launch.json, I don't want to add --inspect, I don't want it to break on node_modules (for me to exclude), I want, when I run a program with Bun, to automatically hit every breakpoint I set in vscode, with zero config.

Is that doable?

What is the feature you are proposing to solve the problem?

A better vscode extension, or maybe no extension needed at all. Maybe Bun can detect if it's run through a script or inside the vscode terminal and wire that up without extension.

As I said; this may be a far-fetched thing. I don't know if it's even possible. But it sure would be amazing. I love the opinionation Bun has, and I think that can extend to the IDE as well.

What alternatives have you considered?

No response

@GerbenRampaart GerbenRampaart added the enhancement New feature or request label Jan 28, 2025
@RiskyMH
Copy link
Member

RiskyMH commented Jan 28, 2025

You can use debugger terminal which will start debugger session when using bun/node. For bun support you will need the official Bun extension though.

https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_javascript-debug-terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants