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

Debugger issues due to incorrect folder for source code files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.2
    • Debugger
    • None

    Description

      Attempts to set a breakpoint for a particular source file only partially works. The breakpoint appears in the "Breakpoints" window, but the breakpoint marker icon (red dot) only briefly flashes up against the line in the source code file Y. In my top level source code file X, a breakpoint can be successfully set for the line that calls into file Y. 

      I then start debugging and it breaks on the breakpoint in file X. I then try to step into the code for file Y. The source code for file X stays displayed. The Debugger window now shows both breakpoint entries for both file X and Y. I click on the breakpoint entry for file Y.

      A dissassembly listing appears for file Y. I see that the path shown for the file is incorrect. It is pointing to the projects build folder. (This build folder only contains the .o and executable files).

      I just realised what the problem is being caused by - see my attached comment for what you need to fix!

       

      Attachments

        1. BuildFolder.jpg
          260 kB
          Lesley Hatton
        2. ProjectFolderContents.jpg
          364 kB
          Lesley Hatton
        3. WrongPath.jpg
          864 kB
          Lesley Hatton
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            casiolh Lesley Hatton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes