Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22847

"Start and Break on Main" does not stop at main

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.9.2, Qt Creator 15.0.0-beta1
    • Debugger
    • windows 10 1903
      MSYS2 64 bit + MinGW 64 bit
      gdb 8.3
    • Windows

    Description

      Having similar issue to QTCREATORBUG-22263

      "Start and Break on Main" doesn't stop with gdb and mingw toolchain. Judging from the previous issue, it seems like it has only been fixed for MSVC debugger instead of gdb debugger.

       

      Edit: The bug occurs when "Run in terminal" option is unchecked. It seems like qtcreator was creating a breakpoint at qMain() instead of main() . My project is a plain C++/Cmake project which doesn't use any Qt library. In fact, it occurs with a simple HelloWorld program.

      Attachments

        1. log.txt
          24 kB
          Kwun Hang Lai

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              dlshcbmuipmam Kwun Hang Lai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes