-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Blazor hasDebuggingEnabled set when "Start without debugging" in VS #24623
Comments
Nope.
We can try to fix it. We had briefly discussed this class of issues (passing configurations from the IDE down to the debugger, such as start without debugging) but hadn't talked about the specifics. The JS debugger sets a
@guardrex Let's add a note in the debugging section to let users know that "Start without debugging" doesn't work with Blazor WASM on VS. @mkArtakMSFT This issue would be a good candidate for RC1 as a perf improvement. |
It looks like our best option here is to implement a middleware in the debug proxy that checks to see if there is a chrome process with the
So, debug proxy + PID scan strikes the balance between being the most portable and requiring us to know the least ahead of time (e.g. what debugging port is used). This approach should also work on remote scenarios without requiring port forwarding/proxying. Some things to be mindful of with this approach:
|
Orrrrrrrrrrr....alternatively as discussed during today's Blazor engineering sync we can have the user explicitly set whether or not they want to debug via a query parameter.
VS Code and VS will need to update the launch URL of the application accordingly. |
- Updated changelog & testplan as well. This includes: * Fully qualify component light bulb ([dotnet/aspnetcore-tooling#22309](https://github.com/dotnet/aspnetcore/issues/22309)) * Add using for component light bulb ([dotnet/aspnetcore-tooling#22308](https://github.com/dotnet/aspnetcore/issues/22308)) * Create component from tag light bulb ([dotnet/aspnetcore-tooling#22307](https://github.com/dotnet/aspnetcore/issues/22307)) * Go to definition on Blazor components ([dotnet/aspnetcore-tooling#17044](https://github.com/dotnet/aspnetcore/issues/17044)) * Rename Blazor components ([dotnet/aspnetcore-tooling#22312](https://github.com/dotnet/aspnetcore/issues/22312)) * Prepare Blazor debugging to have better support for "Start without debugging" scenarios ([dotnet/aspnetcore-tooling#24623](dotnet/aspnetcore#24623))
- Updated changelog & testplan as well. This includes: * Fully qualify component light bulb ([dotnet/aspnetcore-tooling#22309](https://github.com/dotnet/aspnetcore/issues/22309)) * Add using for component light bulb ([dotnet/aspnetcore-tooling#22308](https://github.com/dotnet/aspnetcore/issues/22308)) * Create component from tag light bulb ([dotnet/aspnetcore-tooling#22307](https://github.com/dotnet/aspnetcore/issues/22307)) * Go to definition on Blazor components ([dotnet/aspnetcore-tooling#17044](https://github.com/dotnet/aspnetcore/issues/17044)) * Rename Blazor components ([dotnet/aspnetcore-tooling#22312](https://github.com/dotnet/aspnetcore/issues/22312)) * Prepare Blazor debugging to have better support for "Start without debugging" scenarios ([dotnet/aspnetcore-tooling#24623](dotnet/aspnetcore#24623))
- Updated changelog & testplan as well. This includes: * Fully qualify component light bulb ([dotnet/aspnetcore-tooling#22309](https://github.com/dotnet/aspnetcore/issues/22309)) * Add using for component light bulb ([dotnet/aspnetcore-tooling#22308](https://github.com/dotnet/aspnetcore/issues/22308)) * Create component from tag light bulb ([dotnet/aspnetcore-tooling#22307](https://github.com/dotnet/aspnetcore/issues/22307)) * Go to definition on Blazor components ([dotnet/aspnetcore-tooling#17044](https://github.com/dotnet/aspnetcore/issues/17044)) * Rename Blazor components ([dotnet/aspnetcore-tooling#22312](https://github.com/dotnet/aspnetcore/issues/22312)) * Prepare Blazor debugging to have better support for "Start without debugging" scenarios ([dotnet/aspnetcore-tooling#24623](dotnet/aspnetcore#24623))
We reverted this change and will put in a more robust fix for 6.0 so re-opening. |
@captainsafia ... Should I close the docs issue 👉 dotnet/AspNetCore.Docs#19545? |
@guardrex Yes. |
Thanks for contacting us. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@lewing given this is a dev scenario and fixing it seems tedious at best, I'm going to mark this as won't fix. Let me know if you feel very strongly about fixing it. |
When blazor is started from inside VS with
Start without debugging
hasDebuggingEnabled is true and load_runtime is passed non zero debug level. This disables most interpreter optimizations (because they would break debugging) leading to substantially slower execution speed (dotnet/runtime#40428). Is this the intended behavior? If not can it be fixed, and if so can it be documented?https://github.com/dotnet/AspNetCore/blob/master/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts#L367
The text was updated successfully, but these errors were encountered: