vscode launch.json files

Open
#441 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, vscode

Research direction

Open the launch files under pico-examples/ide/vscode and compare each reported key with the VS Code diagnostics. Reproduce the configuration on Ubuntu 22.04 using the existing OpenOCD and gdb-multiarch setup; done means VS Code accepts the launch file and can start debugging a Pico through the debug probe.

Written by the indexing model from the issue text.

Description

HI, Looking for help with vscode launch files in order use a pico debug probe (not a second pico).
I am working on a Ubuntu 22.04 host, have openocd setup and can use gdb-multiarch to debug a blink program on a pico.
When I try to use the launch files provided in pico-examples/ide/vscode vscode complains that:

        "type":"cortex-debug",

"please use node type instead", and for these :
"executable": "${command:cmake.launchTargetPath}",
"servertype": "external",
"gdbPath" : "gdb-multiarch",
"gdbTarget": "localhost:3333",
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToEntryPoint": "main",
// Work around for stopping at main on restart
"postRestartCommands": [
"break main",
"continue"
]

each of these lines have a key words that are "not allowed". I am obviously missing something that will turn out to be obvious. But I cannot see it.

Dominant language
C
Stars
3.9k
Forks
1k
Avg merge
1d 16h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/pico-examples

All issues in raspberrypi/pico-examples

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.