Skip to content

Add --debug parameter #5531

@nohwnd

Description

@nohwnd

Summary

--debug is used in dotnet , to pause execution, until we attach debugger and continue.

Background and Motivation

When I want to quickly debug a test in exe that is failing I need to open it in VS, and I need to do it via less known approach: open project / solution, select the exe, debug.

An easier, more discoverable approach is to add a documented --debug parameter that will do the following:

Stop execution and print the ID of the process.

Wait for debugger attach, or keypress, to resume execution.

I've been using this with great success in dotnet --debug test etc.

Proposed Feature

Above.

Alternative Designs

Using attachVS or similar built in tool. Using env variables, as we are doing now.

Metadata

Metadata

Assignees

Labels

Area: MTPBelongs to the Microsoft.Testing.Platform core library

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions