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

Add environment variable indicating debug mode #240

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

Conversation

JustinGrote
Copy link

Fixes #239

@JustinGrote
Copy link
Author

@hbenl hello, any appetite to merge this or should I just fork?

@Spown
Copy link

Spown commented Nov 14, 2024

Too late to the party and the author is semi-dead anyway. but there is "native", less invasive way to tell whether the dubugger is running, that does not violate the purity of testing env. Simply change the mochaExplorer.debuggerPort (preferrably workspace-scoped) to anything other than 9229 and check process.debugPort!==9229 in the code. The undebugged run always run on 9229

@JustinGrote
Copy link
Author

I've since started using https://github.com/microsoft/vscode-test-cli and the associated testing extension which works great.

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.

Add Debug Indicator to Test Run Invocation that differentiates between a run session and a debug session
2 participants