vstest icon indicating copy to clipboard operation
vstest copied to clipboard

Enable native debugging for vstest.console

Open ocitrev opened this issue 1 year ago • 1 comments

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

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

ocitrev avatar Oct 21 '24 13:10 ocitrev

@microsoft-github-policy-service agree

ocitrev avatar Oct 21 '24 13:10 ocitrev

Thank you.

nohwnd avatar Oct 24 '24 07:10 nohwnd