[SOLVED] SU12 wasm debug makes to crash both VS2022 and the sim

Hello can’t use VS 2022 debugger anymore with SU12, on previous SU it was ok.
- both dll and wasm module are in DEBUG mode as reported by WASM debug window
- option “fast wasm compilation” is checked - option “load modules asyncr”
is checked - when i connect to simulator exe file debug crashes with:
KittyHawkx64_PCSUB.pdb not loaded never happened before and can’t
understand the issue, obviously mentioned .pdb was not generated by VS.
SimSkunkWorks

Hi This could be related to the debugging change in SU12, see:
/articles/14774/su12-flighting-information-release-
notes.html

Did you start the sim with
“-AllowDebugger”? BuffyGC

Thanks a lot BuffyGC, got it, my bad did not read release notes accurately.
/Mario SIM SKUNK WORKS

@BuffyGC @MarioMotta I am trying to add the -AllowDebugger option to
FlightSimulator.exe, but I am unable, it is an app, how you guys did this?
silly me but I am stuck on this step lol Best, Raul

I think you are using the Store/Game Pass version. Create a link on your
desktop with the following content:

cmd.exe /C start shell:AppsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App -AllowDebugger

BuffyGC

Thank you so much, that worked. R.

@Boris I was struggling to understand how to add the “AllowDebugger” flag.
Perhaps adding this to the documentation will help other devs to avoid getting
stuck like I was?

  1. cmd.exe /C start shell:AppsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App -AllowDebugger
    

Best, Raul