question

Hao Zhou avatar image
1 Like"
Hao Zhou asked Hao Zhou commented

Cannot debug through Visual Studio after upgrading engine to 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.

FlexSim 23.1.2
debug
5 |100000

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

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Hao Zhou commented

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


1687975301942.png (87.2 KiB)
· 1
5 |100000

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

Hao Zhou avatar image Hao Zhou commented ·
Thank you so much Phil @Phil BoBo . The "Native" code setting helped me to resolve the issue. Much appreciated for the help!
1 Like 1 ·

Write an Answer

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

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