plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

MarioMotta avatar image
MarioMotta asked Simbol answered

[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

wasm
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

BuffyGC avatar image
BuffyGC answered

Hi

This could be related to the debugging change in SU12, see:
SU12 Flighting information & release notes - MSFS DevSupport (flightsimulator.com)

1677702656160.png

Did you start the sim with "-AllowDebugger"?

BuffyGC


1677702656160.png (11.1 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MarioMotta avatar image
MarioMotta answered

Thanks a lot BuffyGC,

got it, my bad did not read release notes accurately.

/Mario

SIM SKUNK WORKS

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Simbol avatar image
Simbol answered

@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

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

BuffyGC avatar image
BuffyGC answered Simbol commented

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


1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Simbol avatar image Simbol commented ·
Thank you so much, that worked.


R.

0 Likes 0 ·
Simbol avatar image
Simbol answered

@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

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.