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

lldb: source mapping interferes with breakpoint setting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 18.0.0
    • Qt Creator 18.0.0
    • Debugger
    • None

      The source mapping for debuggers seems to do weird things, which breaks the breakpoint functionality in Qt Creator with lldb.
      Reproduction steps:

      • create a new C++ "Qt Console Application" project
      • set a breakpoint in main.cpp
      • run the debugger
      • The debugger stops at the breakpoint, as expected
      • Right Click Debugger > Configure Debugger > Source Paths Mapping
      • Add a mapping from {/Users/somePathThatDoesNotExist}

        to the project folder (in my case its {/Users/sami/untitled}})

      • Stop the debugger, and debug the project again

      Expected outcome: the debugger stops at the breakpoint
      Actual outcome: the debugger ignores the breakpoint (the breakpoint has a sandglass on it, to show that it wasn't loaded). Its a bit annoying because all breakpoints set via the QtCreator UI are not loaded.
      (I'm using macOS)

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

            hjk hjk
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes