• 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.

P3D v2 Attaching debugger to prepar3d.exe

Messages
20
Country
germany
Hi guys,

I am trying to debug my gauge (.dll) loaded in prepar3d. The .dll and .pdb are located in the /gauges folder of p3d. Once the sim is started, I am attaching the debugger from VS2013 to prepar3d.exe, then loading the aircraft where my gauge resides in.

Unfortunately VS2013 tells me it cannot reach the breakpoint because the symbols could not be loaded. But the gauge is correctly loading with the panel.

I was developing for FS9 until now and there everything worked great this way, although there I could see everything that was happening in FS9 (threads being started and killed, modules loaded etc.) which is not working now, either. It looks like although it seems connecting there is no real connection.

Maybe you got any advice what might be the culprit, here?

EDIT: As a follow up: I was moving my whole project onto my notebook running FS9 and VS2013...there it is running flawlessly, smybols get loaded right away and I can start debugging without a problem. So it must be something p3d is doing differently than FS9, maybe because FS9 is native and p3d is managed?

Thanks in advance!
 
Last edited:
Are you absolutely sure you copied the latest/correct binaries to your panel folder? I am assuming you already know this but if the binaries and symbols dont match, you wont get a break point.

If you are sure there is nothing wrong there, then check your module is even loaded. A simple test is to try to delete the dll after your aircraft loads.
 
There's a setting when you go to 'attach' that tells the debugger how to treat the application... I believe it's being treated as managed and you want to tell it to treat it as native.
 
Back
Top