Skip to content

Property definitionPath is not allowed in "type":"gdbtarget" (CDT GDB Debug Adapter) #108

Description

@jsnowy

Type: Bug Report

Describe the bug

  • OS and Version: Linux fedora 7.0.8-200.fc44.x86_64
  • VS Code Version: 1.120.0
  • Extension Version: 1.9.0
  • Target Device: Nucleo-H743ZI2
  • Other extensions you installed (and if the issue persists after disabling them): Arm CMSIS Debugger
  • A clear and concise description of what the bug is.
    I have installed the "Arm CMSIS Debugger" extension which is warped below extensions:
    1."CDT GDB Debug Adapter"
    2."Memory Inspector"
    3."Peripheral Inspector"
    4."Serial Monitor"

To Reproduce
Steps to reproduce the behavior:

  1. set "type":"gdbtarget" in launch.json.
  2. set "definitionPath".
  3. See error: "Property definitionPath is not allowed"

Expected behavior

to enable "Peripheral Inspector" & "Memory Inspector" in my "launch.json"

Code sample and logs

  • launch.json
  • {
    "type": "gdbtarget",
    "request": "launch",
    "name": "gdb-openocd-CDT",
    "program": "${command:cmake.launchTargetPath}",
    "definitionPath":"/home/jsnowy/Documents/stm32doc/stm32h743/CMSIS/svd/STM32H743.svd",
    "gdb":"/usr/bin/gdb",
    "cwd":"${fileDirname}",
    "verbose": true,
    "preConnectCommands":[
    ""
    ],
    "initCommands": [
    ""
    ],
    "preRunCommands": [
    ""
    ],
    "target":{
    "type": "extended-remote",
    //"parameters": [
    // "localhost:3333"
    //],
    "host":"localhost",
    "port":"3333",
    "cwd":"",
    "server":"/usr/bin/openocd",
    "serverParameters":[
    "-f", "interface/stlink.cfg",
    "-f", "board/st_nucleo_h743zi.cfg",
    "-c", "adapter speed 24000"
    ],
    //"serverPortRegExp":"Info : Listening on port \d+ for gdb connections", auto captrue port from openocd output
    "portDetectionTimeout": 5000,
    "automaticallyKillServer": true,
    },
    "customResetCommands": [
    ""
    ],
    },

Screenshots

Image

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions