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

Enable native debugging for vstest.console #10401

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ocitrev
Copy link
Contributor

@ocitrev ocitrev commented Oct 21, 2024

Description

With environment variable VSTEST_HOST_NATIVE_DEBUG, we can use a native debugger to debug tests but it requires --InIsolation flag.
When using the argument --tests: to run a specific test, testhost.exe is spawned twice and we must attach twice to properly debug.

When the environment variable VSTEST_RUNNER_DEBUG is set, vstest.console only waits for a managed debugger.

I propose to add new environment variable VSTEST_RUNNER_NATIVE_DEBUG to enable native debugging of vstest.conssole.
This will enable native debugging of tests without the --InIsolation flag.

Related issue

Fixes #10393

  • I have ensured that there is a previously discussed and approved issue.

@ocitrev
Copy link
Contributor Author

ocitrev commented Oct 21, 2024

@microsoft-github-policy-service agree

@nohwnd nohwnd merged commit 04f230c into microsoft:main Oct 23, 2024
7 checks passed
@nohwnd
Copy link
Member

nohwnd commented Oct 24, 2024

Thank you.

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.

Debugging tests with a native debugger requires --InIsolation flag
2 participants