Local C++ debugging stop working in the last VS code update

after build-debug-local task, no debug initiated and the debug terminal says

cppdbg: mitest:
&“aviso: GDB: Failed to set controlling terminal: Operaci\303\263n no permitida\n”

Version: 1.120.0
Commit: 0958016b2af9f09bb4257e0df4a95e2f90590f9f
Date: 2026-05-12T20:17:22Z
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.17.0-23-generic

Identifier: toradex.apollox-vscode
Version: 3.4.2
Last Updated: 1 week ago

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Based on the error message you’re encountering, this appears to be a terminal control issue with GDB in the latest VS Code update. The error “Failed to set controlling terminal: Operación no permitida” suggests a permission or terminal handling problem.

To help troubleshoot this C++ debugging issue effectively, I need to clarify your setup:

Could you please specify:

  • Which Toradex hardware are you using? (e.g., Verdin iMX8M Plus, Apalis iMX8, Colibri iMX8X)
  • Which OS and version are you running on the device? (e.g., Torizon OS 6.8.2, BSP 7.2.0)

You can get this information by running the tdx-info command on your device. More details are available at: Getting Device Information with Tdx-Info | Toradex Developer Center

Common platforms to mention:

  • Hardware: Verdin iMX8M Plus, Verdin AM62, Aquila AM69, Apalis iMX8QP, Colibri iMX8X
  • OS: Torizon OS 6, Torizon OS 7.2.0-build.13, BSP 7, BSP 6

This information will help me provide the most accurate debugging guidance for your specific platform configuration.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

is a problem downloading all separate debug info for /lib/x86_64-linux-gnu/libQt6, disconnect internet at start debug process and worked

Great finding! You’ve identified that the issue is related to GDB attempting to download debug symbols for Qt6 libraries during the debugging process. This is a common issue with recent VS Code updates when debugging applications that use Qt libraries.

Solution

Based on your discovery, here are the recommended approaches to resolve this debugging issue:

1. Disable Automatic Debug Symbol Downloads

Add the following GDB commands to your VS Code debugging configuration in .vscode/launch.json:

"setupCommands": [
    {
        "description": "Disable automatic debug symbol downloads",
        "text": "-gdb-set auto-load safe-path /",
        "ignoreFailures": true
    },
    {
        "description": "Disable debuginfod",
        "text": "-gdb-set debuginfod enabled off",
        "ignoreFailures": true
    },
    {
        "description": "Enable pretty-printing for gdb",
        "text": "-enable-pretty-printing",
        "ignoreFailures": true
    }
]

2. Environment Variable Approach

Set the DEBUGINFOD_URLS environment variable to disable automatic downloads. Add this to your debugging configuration:

"environment": [
    {
        "name": "DEBUGINFOD_URLS",
        "value": ""
    }
]

3. GDB Configuration File

Create a .gdbinit file in your project root with:

set debuginfod enabled off

Why This Happens

Recent GDB versions automatically attempt to download debug symbols from online repositories when debugging applications that link against system libraries like Qt6. This can cause delays and terminal control issues during local debugging sessions.

Your workaround of disconnecting the internet confirms this is the root cause, as it prevents GDB from attempting these downloads.

Additional Considerations

For Torizon-based applications, this issue typically affects local debugging more than remote debugging, since the containerized environment on the target device usually has a more controlled symbol environment (1).

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

the suggested fixes don’t work, the only solution worked is disconnects internet