Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Qt Creator not stopping at breakpoints

    Tools
    debugger breakpoint
    2
    4
    1508
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kitfox last edited by kitfox

      I'm new to Qt Creator and trying to step through some code that I've written. I've set a breakpoint on a line which prints a message to the console, so I know it is being executed. However, the debugger is not stopping when it gets to that line.

      I'm pretty sure I'm compiling for debug mode - the top icon of the bottom menu in the left sidebar says 'Debug' and if you expand it, I have "kit: Desktop Qt 5.5.0 MSVC2013 46-bit" and "build: debug" selected. This is also creating what looks like a debug build in the root of the directory where my project is.

      I'm starting a debug session by clicking the green arrow with the bug with the tooltip 'Start Debugging F5'.

      I'm running on Windows 7 using Qt Creator 3.5.0.

      How do I get the debugger to halt at my breakpoints?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        The question might sound sill but did you also install Microsoft's debugger ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply Reply Quote 0
        • K
          kitfox @SGaist last edited by

          @SGaist I don't remember explicitly installing it - I just ran the Qt setup. I also have Visual Studio Express installed.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by SGaist

            Then, double check to ensure you did also install the debugger. It's not part of the Visual Studio installation.

            [edit: added missing part]

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • First post
              Last post