/.vscode/launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Pico Debug",
            "type": "cortex-debug",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "executable": "${workspaceRoot}/target/thumbv6m-none-eabi/debug/${workspaceRootFolderName}",
            // This may need to be arm-none-eabi-gdb depending on your system
            //"gdbPath" : "gdb-multiarch",
            // Connect to an already running OpenOCD instance
            "servertype": "external",
            "gdbTarget": "kirara3:3333",
            "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
            //"runToEntryPoint": "main",
            "preLaunchTask": "build",
            // Work around for stopping at main on restart
            "postRestartCommands": [
                "break main",
                "continue"
            ]
        }
    ]
}