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

Add support for source line + column breakpoints

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 11.0.0
    • Debugger
    • None

    Description

      Most debuggers support setting a breakpoint using a file name and line number.

      Some debuggers also support setting a breakpoint using a file name, line number and a column number.

      Specifying a column number allows breaking in a specific sub-expression or function call.

      It would be nice if Qt Creator supported that.

      The only C++ / native code debugger that supports that at the moment is lldb (from what i know).

      $ lldb
      help breakpoint set
      ....
      -u <column> ( --column <column> )
                  Specifies the column number on which to set this breakpoint.
      

      gdb has an open bug report to add support, cdb/msvc i didn't find anything in the documentation.

      There are other language debuggers that support column breakpoints, like javascript, typescript, powershell. It might be relevant for future Debugger Adapter protocol support.

      Here's a video of what the UX for column breakpoints looks like in visual studio code.

      https://github.com/microsoft/vscode/issues/14784#issuecomment-278299633

      And a screenshot.

      I know it's a long shot, but i figured i'd file a report anyway.

      Attachments

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

        Activity

          People

            hjk hjk
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes