Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-154

On Linux, the VSCode extension debugger integration does not pretty-print symbols

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 1.4.0, 1.2.1, 1.6.0, 1.7.0
    • Debugging
    • None
    • Linux/X11

    Description

      I'm using Ubuntu Linux 24.04 with clang/LLVM to develop Qt applications. I have installed the current latest VSCode extension 1.2.1, and configured it to use my custom Qt debug build with the qtpaths configuration.

      However, the debugger integration does not pretty-print any Qt symbols. For example, the following screenshot shows a method with two QStrings aOutputAlias and vOutputAliasBefore. I would assume that pretty-printed symbols wold look more "pretty", or am I mistaken?

      Here is the corresponding section from my .launch.json as created with the Qt extension, but slightly modified:

      {
          "name": "LLDB Debug MyExecutable",
          "type": "lldb",
          "program": "${env:BBSSOFTDEST_OSPATH}/Debug/bin/MyExecutable",
          "request": "launch",
          "args": [
              "--hot-reload",
              "--logfile",
              "/tmp/MyExecutable.log",
              "--verbose=15",
          ],
          "cwd": "${env:BBSSOFTDEST_OSPATH}/Debug/bin",
          "env": {
              "name": "GTEST_CATCH_EXCEPTIONS",
              "value": "0"
          },
          "visualizerFile": "${command:qt-cpp.natvis}",
          "showDisplayString": true,
          "linux": {
              "MIMode": "lldb",
              "miDebuggerPath": "/usr/bin/lldb"
          },
          "osx": {
              "MIMode": "lldb"
          },
          "windows": {
              "environment": [
                  {
                      "name": "PATH",
                      "value": "${env:PATH};${command:qt-cpp.qtDir}"
                  },
                  {
                      "name": "QT_QPA_PLATFORM_PLUGIN_PATH",
                      "value": "${command:qt-cpp.QT_QPA_PLATFORM_PLUGIN_PATH}"
                  },
                  {
                      "name": "QML_IMPORT_PATH",
                      "value": "${command:qt-cpp.QML_IMPORT_PATH}"
                  }
              ],
              "MIMode": "lldb"
          },
          "console": "internalConsole",
      },
      

      Attachments

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

        Activity

          People

            qtvscodeteam Qt VS Code
            emmenlau Mario Emmenlauer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes