Skip to content

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.

@ocitrev ocitrev deleted the vstest-native-debug branch December 4, 2024 21:10
This was referenced Jul 21, 2025
This was referenced Aug 28, 2025
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