Cannot debug through Visual Studio after upgrading engine to 23.1.2

Cannot debug through Visual Studio after upgrading engine to 23.1.2

haozhou88FBM
Enthusiast Enthusiast
167 Views
2 Replies
Message 1 of 3

Cannot debug through Visual Studio after upgrading engine to 23.1.2

haozhou88FBM
Enthusiast
Enthusiast

[ FlexSim 23.1.2 ]

Hello,

After I upgraded FlexSim engine for my modules from 22.1 to 23.1, I found I cannot debug code through Visual Studio. The process can be attached but breakpoint always show "The breakpoint will not currently be hit. No symbols have been loaded for this document".

I compared .sln and .vcxproj files from both versions of the module, they are identical. So that means there is no changes for the C++ project settings.

Could you please provide suggestions to fix this issue? Thanks so much.

Accepted solutions (1)
168 Views
2 Replies
Replies (2)
Message 2 of 3

philboboADSK
Autodesk
Autodesk
Accepted solution

Our modules debug fine, so I'm just guessing here.

Maybe you should make changes in the C++ project settings. Maybe try updating the "C++ Language Standard" to C++20 if it isn't?

You might consider comparing your project settings to the AStar module's settings. GitHub - flexsim/AStar: FlexSim A* Module

Also, when you attach, make sure you are only connecting to "Native code". Sometimes if you use Visual Studio to debug other projects and types, then you may have Managed or other types of code in your attach settings:

1687975301942.png



Phil BoBo
Sr. Manager, Software Development
Message 3 of 3

haozhou88FBM
Enthusiast
Enthusiast
Thank you so much Phil @Phil BoBo . The "Native" code setting helped me to resolve the issue. Much appreciated for the help!