-
Notifications
You must be signed in to change notification settings - Fork 395
Redesign [debug]
directive for end user opt-in
#1607
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
Comments
I had implemented a similar directive in CommandDotNet but found that I often wanted the debugger to run before the app was configured so I could validate the configuration, especially when running middleware. So I created this static method that can be called before configuring the application. It doesn't address the security issue but I've found it more useful. |
Could elaborate a little bit on what you mean by this exactly? :) |
As implemented, the |
Should the documentation of |
Apologies. The docs in this repo are outdated and need to be removed. The official documentation is here and doesn't mention |
… supports "[debug]" directive. See related issues: dotnet/command-line-api#1613 dotnet/command-line-api#1607
The
[debug]
directive allowed for a consistent way to attach a debugger and stop on a breakpoint in an application's startup code. We weren't satisfied with the security of the design. Ideally, this functionality should be opt-in by the end user rather than determined by the application developer.One proposal is to have the debug check verify the presence of a different user-installed tool before pausing to attach the debugger.
The text was updated successfully, but these errors were encountered: