Uh oh!
There was an error while loading. Please reload this page.
Add --debug-attach option to MTP - #6499
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Jakub Jareš (nohwnd)
commented
Sep 3, 2025
Would you reconsider the name to be --debug? That is what dotnet sdk uses, even though they just emit it in debug builds. https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet/Extensions/ParseResultExtensions.cs#L232-L239 --debug:attach is used just by templating engine. Also the I've grown to like the implementation on msbuild that does readline, and unblocks even if there is no debugger. Makes it nicer when you run with the parameter / env variable by accident and just want to continue. On the other hand, it is annoying to have to press the key to unblock, so imho awaiting the debugger or keypress would be the best. |
Fixes#5531
I went with
--debug-attachas it seems more natural and closer to reality than--debugto me. This is also aligned with naming on sdk --debug: attachAnother option would be to use
--debug attachso we could add more debug modes in the future.