Skip to content

Support integratedTerminal setting in VSCode debugger #15706

@kirankunigiri

Description

@kirankunigiri

What version of Bun is running?

1.1.34

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

When I run a file with bun from the terminal, both readline and process.stdout.write work correctly. But when I do it from the VSCode debug console with the Bun extension, all inputs are completely skipped and it doesn't wait for me to type user input. This is an issue with VSCode debugger not supporting user input in general (for node as well).

With node.js, VSCode supports the following setting inside the launch.json configuration: "console": "integratedTerminal"
This allows the node vscode debugger to use the integrated shell which does support user input.
However, Bun does not support this setting inside it's launch.json configuration. Enabling this does nothing.

What is the expected behavior?

Bun should enable support of the "console": "integratedTerminal" option so that it will work with the VSCode debugger with the integrated terminal and support user input.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingvscodeSomething to do with the VSCode extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions