• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 Flight Simulator, wasm module vs VS 2019 Debugger

Messages
162
Country
italy
Hi,
it seems that the sim is very unstable using it with the debugger running even if not connected with the sim process.
Without debugger it works nicely.
The only work around i could find was to launch the sim, load my plane (which has one was module loaded and initialized)
and then run the VS 2019 debugger and connect to the sim.
Sim CTD silently if during plane loading it finds the VS2019 running underneath.
Someone had some issue ?
 
The SDK WASM page under Debugging section states that you must attach debugger when the game is running.
I do it like they said without problems. And when I need I just rebuild wasm module, then build package and after that reattach Visual Studio to process. If needed reload airplane using select window in developer menu.
 
thanks for answer, i knew that page:
Code:
Debugging
Here are the steps to follow to debug your add-on:
Open your project in Visual Studio.
Build it and copy the WebAssembly module to the panel folder of your SimObject.
Launch Microsoft Flight Simulator.
When the game is running, use the Debug > Attach to process command of Visual Studio.
In the processes list, select Microsoft Flight Simulator.exe and press the Attach button.
Once in the main menu, open your project.
Build the package.
Launch a flight with your SimObject.
Once the game has loaded your SimObject, the breakpoints set in the project become active and you can step into your code.
now I know my English is weak but I don’t see any point requiring that the sim doesn’t have debugger running before itself.
indeed the phrase:
Code:
"When the game is running, use the Debug > Attach to process command of Visual Studio." 
would seem to indicate the opposite.
or i'm missing something ?
 
No, you aren't missing anything. That's p*ss-poor wording. Even as a native English speaker I can interpret that two ways:

1. Debugger is alrready running, so attach it now.
2. Start the debugger and then attach it to the running MS2020 process.

If (2) works, stay with it.
 
Back
Top