Comments (7)
I created a Blazor Web App with WebAssembly interactivity enabled globally using .NET 9 Preview 3 and then published the app. It looks like debugging is correctly disabled:
from aspnetcore.
In my testing, Release builds (non-published) run the interpreter in debug mode, which does increase startup overhead. I'm not sure about publish, because right now my published builds are crashing during jsexport startup.
from aspnetcore.
@MackinnonBuck parking this on your plate to follow up and understand what may be causing this.
from aspnetcore.
@lewing it seems that all this is now controlled by the runtime and we just pass parameters to the runtime during Blazor startup. If there are specific flags to set, etc. we can verify if they are being set or not. Other than that, it's not clear how we can address this.
from aspnetcore.
@maraf knows the details here
from aspnetcore.
We also don't know how to detect whether the WebAssembly runtime is in debug or release mode. What's the easiest way?
from aspnetcore.
- Any "build" (Debug, Release or any user defined) by default results in "debugging enabled", disabling interpreter optimizations etc.
- Any "publish" results in "debugging disabled", enabling interpreter optimizations etc.
- This default behavior can be overriden by
WasmDebugLevel=0
(disable debugging) orWasmDebugLevel=-1/1
(enable debugging).
More details in dotnet/runtime#96239 (comment)
We also don't know how to detect whether the WebAssembly runtime is in debug or release mode. What's the easiest way?
The actual value on runtime can be obtained by getConfig().debugLevel
, in Blazor by Blazor.runtime.getConfig().debugLevel
from aspnetcore.
Related Issues (20)
- Phantom app_offline.htm Detection Events and Application Shutdowns
- Perf regression: plainTextEmptyFilter
- No angular template on ubuntu? HOT 1
- How to use QueryHelpers outside Asp.net core? [Additional information] HOT 1
- Windows Server Hosting Bundle does not remove previous installation during upgrade
- dotnet watch with hot reload reloads app when file added to bin
- Retry CanSendAndReceiveUserMessagesFromMultipleConnectionsWithSameUser HOT 1
- JsonPolymorphic not respected in request DTOs HOT 1
- Perf improvement: json, plaintext_spring
- Interactive Blazor application doesn't work when accessed through "Dev Tunnels" HOT 2
- Perf regression: endpoint
- Controller action with `Async` suffix causes issues when resolving url from `IUrlHelper.Action`
- HealthCheckMiddleware unexpected behavior, still running through the other middlewares in the chain HOT 1
- Add a `Scope` property to the `Authorize` attribute
- route /_adminer.php throws ArgumentOutOfRangeException HOT 1
- ProjectTemplates instructions error
- Perf regression: mapaction, multiple_queries
- Perf improvement: ApiCrudListProducts
- Errors when publishing new Blazor WASM version (no nuget/framework updates) HOT 1
- QuickGrid ItemsProvider called first time with Count=null when using Virtualize=true
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore.