VS2017 with Qt VS Tools breakpoints not working

  • Hey guys,

    got the following problem: I cannot hit breakpoints in VS2017 + Qt VS Tools.
    Everytime I go into debug mode, all my breakpoints are greyed out with the following message:
    0_1509319120370_2017-10-30 00_17_12-VEngine (Running) - Microsoft Visual Studio.png

    Also debug output says: "'VEngine.exe' (Win32): Loaded 'A:\Projekte\Qt Workspace\Projects\VEngine\release\VEngine.exe'. Module was built without symbols."

    Anyone got an idea how I can fix that?

  • @TriNityGER

    It looks like you are trying to debug a release build, which is coming without debug symbols. You are loading an exe from release folder, but for debug you should have debug as name for the folder.

    Rerun qmake and rebuild should solve the problem. Certainly you need to switch your build to debug as well.

  • Wow... learning years of programming and than this embarrasing mistake. Does Qt VS Tools set this to release mode by default??
    I can't remember setting it to release. Anyways, thanks for the obvious solution :D

  • @TriNityGER

    Good to see that your problem has been solved.

    Sh.. happens ;)

    With Qt creator and definitely MinGW debug mode is the default mode. I would expect similar for Visual Studio with Qt VS tools, but I do not know.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.