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

Support passing URL and port to --inspect and --inspect-brk #5500

Closed
AriPerkkio opened this issue Apr 6, 2024 Discussed in #4062 · 0 comments · Fixed by #5509
Closed

Support passing URL and port to --inspect and --inspect-brk #5500

AriPerkkio opened this issue Apr 6, 2024 Discussed in #4062 · 0 comments · Fixed by #5509
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@AriPerkkio
Copy link
Member

AriPerkkio commented Apr 6, 2024

Discussed in #4062

Originally posted by Guid75 September 2, 2023

Hi,

Wondering why vitest does not allow to pass host and port to --inspect and --inspect-brk flags like nodejs does.

My process is running on a docker container and I need to pass "0.0.0.0" instead to "127.0.0.1" in order to access it from my debugger.

Let's add support for passing URL and port to Vitest's --inspect flags. Similar as in https://nodejs.org/en/learn/getting-started/debugging#command-line-options. This considers both --inspect and --inspect-brk flags.

  • --inspect -> enabled and uses the default host and port that Node chooses
  • --inspect=127.0.0.1:9229 -> enabled and uses the defind host and port
@AriPerkkio AriPerkkio added the p2-nice-to-have Not breaking anything but nice to have (priority) label Apr 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant