GithubHelp home page GithubHelp logo

Comments (7)

danroth27 avatar danroth27 commented on June 10, 2024 2

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:

image

from aspnetcore.

kg avatar kg commented on June 10, 2024

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.

mkArtakMSFT avatar mkArtakMSFT commented on June 10, 2024

@MackinnonBuck parking this on your plate to follow up and understand what may be causing this.

from aspnetcore.

mkArtakMSFT avatar mkArtakMSFT commented on June 10, 2024

@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.

lewing avatar lewing commented on June 10, 2024

@maraf knows the details here

from aspnetcore.

halter73 avatar halter73 commented on June 10, 2024

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.

maraf avatar maraf commented on June 10, 2024
  • 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) or WasmDebugLevel=-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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.