microsoft / microsoft/vscode-cpptools
Remote debugging not possible
Open
@pieandcakes is already working on this.
Since Nov 5, 2016.
debugger
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Trying to attach to a GDB server with no luck. All I want is to connect to the GDB server, run target remote localhost:4444 and start sending some monitor commands.
As soon as I uncomment miDebuggerServerAddress I get
Unable to start debugging. Cannot access a disposed object.
Also, why am I required to specify a process id? I am trying to debug on a embedded target, so my GDB server, that I run through, speaks with it over JTAG. Which process id is referred to?
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Attach",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceRoot}/Sw/A_XMC/out/use/A_Myriad_A_6_13.elf",
"processId": "${command.pickProcess}",
"MIMode": "gdb",
// "miDebuggerServerAddress": "localhost:4444",
"miDebuggerPath": "C:/dev/ELF/GDB/gdb.exe"
}
]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.