Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Qt 6 Debugging in Visual Studio and VS Code

Show More Qt Value Types in the Debugger

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "qt6.4.2-msvc",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${command:cmake.launchTargetPath}",
            "visualizerFile": "${workspaceFolder}/qt6.natvis",
            "sourceFileMap": {
                "C:/work/build/qt5_workdir/w/s": "C:/Qt/6.4.2/Src",
                "Q:/qt5_workdir/w/s": "C:/Qt/6.4.2/Src",
                "C:/Users/qt/work/install": "C:/Qt/6.4.2/Src",
                "C:/Users/qt/work/qt": "C:/Qt/6.4.2/Src"
            }
        }
    ]
}

About KDAB


4 Comments

9 - Mar - 2023

Serhiy

31 - Mar - 2023

Michal Lazo

31 - Mar - 2023

Nicolas Arnaud-Cormos

24 - Jul - 2024

Reshma Dhotre

Debug QT on VSCODE
————————————————
click on RunAndDebug
Open the terminal window in VSCode
Goto Debug console

VSCode->Debug console
P qStr.toStdString()
NicolasArnaud-Cormos

Nicolas Arnaud-Cormos

Senior Software Engineer & Teamlead