VS2022 debugger crashes suddenly

Version: 1. .2.7.0

Frequency: Consistently

Severity: High

Bug description:

VS 2022 debugger correclty links with 2024 executable ( wasm debug window shows both wasm and dll in debug mode) however crashes with “KittyHawkx64_PCSUB.pdb not included” as soon as i try to set a break point. This makes debugging impossible.
Thanks
/Mario

@PaternalSmile51

Did you start the sim with the -AllowDebugger flag as indicated in the documentation?

https://docs.flightsimulator.com/msfs2024/html/6_Programming_APIs/WASM/VS_WASM_Debugger_Extension.htm

Best regards,

Eric / Asobo

Hi Eric,
adimittely not, apologize, i’m partially excused by the WASM debug window which correctly shows both in DEBUG mode even without
-AllowDebugger flag (I used it in 2020).
Thanks a lot
/Mario

The WASM debug window tells you whether the WASM module was compiled in Debug mode and if the DLL was built in Debug mode too - this can be useful information even if you do not launch with the flag. :wink:
Unfortunately we cannot warn people when they try to attach with a debugger that they forgot to specify the flag. :stuck_out_tongue:

Best regards,

Eric / Asobo