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

Cannot debug by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.12.1
    • Debugger
    • Mac OS Catalina 10.15.5
    • macOS

    Description

      Debugging does not work (the Debugger Presets pop-up list is empty despite two autodetected instances of lldb).  To reproduce (and work around) after a fresh install of Qt\ Creator:

      Menu: File / New File or Project / Application (Qt) / Qt Console Application / <create Hello World in /tmp/ > / qmake or CMake / <no language> / Desktop Kit only
      <Select Debug mode along left column of main GUI>
      Menu: Debug / Start and Break on Main
      <You see it build, but the breakpoint never happens>
      <Add a printf statement, and it never prints in pane "3 Application Output" either>
      <Note that the Debugger Preset popup menu is empty>
      Menu: Debug / Start Debugging / Start and Debug External Application...
      <Press "Choose..." and navigate to the executable in /tmp/>
      <Select Break at "main">
      <Select "OK">
      <This works>

      It looks like someone recently moved Kits from Build and Run to Preferences, losing the Debugger selection popup in the process (or forgot to autopopulate the one in the main GUI, etc.).  This cost me a huge amount of wasted time trying things that didn't work before hitting upon treating the executable as an external application.  Actually unbelievable.

       

      Attachments

        1. HelloWorldNot.png
          HelloWorldNot.png
          520 kB
        2. image-2020-11-22-23-33-40-868.png
          image-2020-11-22-23-33-40-868.png
          582 kB
        3. image-2020-11-22-23-34-31-987.png
          image-2020-11-22-23-34-31-987.png
          582 kB
        4. image-2020-11-22-23-35-00-061.png
          image-2020-11-22-23-35-00-061.png
          136 kB
        5. image.png
          image.png
          136 kB
        6. image-2020-11-23-17-01-50-623.png
          image-2020-11-23-17-01-50-623.png
          141 kB
        7. image-2020-11-23-22-33-53-283.png
          image-2020-11-23-22-33-53-283.png
          278 kB
        8. image-2020-11-23-23-09-35-179.png
          image-2020-11-23-23-09-35-179.png
          280 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            josmithiii Julius Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes