[WASM][Debug][Windows 11] App no longer can be debugged #7999
-
I migrated my WASM solution from VisualStudio 2022 on Windows 10 to a new laptop with VisualStudio 2022 on Windows 11 and found that I no longer could start the app in DEBUG but saw tons of errors (below) in VS output window. This made me tinker with launchSettings.json and compare it with the version of the sample solution which I was using here and which - to my big surprise - still did start on Windows 11 (however, I saw tons of errors in browser console but that's a different story likely related to the wrong default settings in 'launchSettings.json/iisSettings') I finally found that adding
... as advised here was the problem (interestingly these lines weren't added by default by the generated working solution above, again another issue which should be looked into). Would I remove/add those lines to any solution I tested then the WASM head would work/not work. Removing those lines got the WASM app started, but now I no longer could e.g. set breakpoints -> bad. @jeromelaban any idea what needed to be done to get me going with proper WASM debugging on Windows 11?
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 41 replies
-
Windows 11 is supported properly. This error message is likely related to some environment issue that prevents the debugger proxy from starting properly. This process is built from the .NET SDK and is likely to fail for non-Uno projects as well. You can try starting the the debugger proxy manually from a path that looks like this one:
and see if there are unusual error messages showing up. Could you also indicate which version of VS 2022 is installed on your machine ? |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban I'm still stranded. What else could be done to get me going with UNO WASM again? Also: not sure if this helps, but the very first exception I do see in my VS output window is this |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban the repo which I provided here (also please see above) exhibits the exact same issue. Also: the issue could be easily reproduced by any random UNo WASM project following directions here. Note: you needed to add the offending lines as per above to launchSettings.json |
Beta Was this translation helpful? Give feedback.
-
Thanks @jeromelaban
Hmm ... isn't the code which I provided above from UNO - and isn't it trying to start an ASP.NET process which apparently triggers .OutputDataReceived but 'string.IsNullOrEmpty(eventArgs.Data)' and hence the exception is thrown in DebugProxyLauncher.cs 188? Believe me, I'm only debugging WASM as it's absolutely unavoidable (since WASM debugging still is close to a nightmare). However there are many scenarios where I needed to understand why stuff is working in WinUI, but not in WASM... |
Beta Was this translation helpful? Give feedback.
-
I just came across something which we should look into. When trying to download and unzip the Uno.Wasm.Bootstrap sources from GitHub I got error below. I could have sworn I have enabled long path support before. Nevertheless I did it again as per here by
... and rebooted. But I'm still getting error below when trying to unzip the Uno.Wasm.Bootstrap sources?!? Is there a problem with long path support on Windows 11?!? |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban I just ran ...and
... and do see this (below). What does that mean and what should I be looking into? When running
... I do see those strange issues |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban (I purposely started a new thread)
Next I ran more tests - unfortunately with very inconsistent results:
What needed to be done to get UNO WASM debuging working? |
Beta Was this translation helpful? Give feedback.
@jeromelaban (I purposely started a new thread)
Next I ran more tests - unfortunately with very inconsistent results: