microsoft / microsoft/vscode-cpptools
Feature request: start to debug c++ directly from command line.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Input information below
This a feature request. Currently, to debug the exe or attach a process, I've to setup launch.json, which is very tedious if you just want to do some quick very verification.
Request: start to debug directly from command line, eg
code -e cpp -d ./a.out arg1 arg2, argN: to debug a.out with arg1 and arg2.... argN
code -e cpp -p 12345: attach process 12345.
"-e cpp" means "pass the following parameters to vscode-cpptools extension."
As a comparison:
In visual studio, you can devenv.exe /debugexe a.exe
Eclipse has a plugin: https://github.com/eclipse-cdt/cdt/blob/master/debug/org.eclipse.cdt.debug.application/scripts/cdtdebug.sh, which allow you to start debug from command line.
Emacs (which is close to VScode since both VScode and emacs are editors while VS/Eclipse are IDE, you can pass some parameters https://stackoverflow.com/questions/5997309/start-emacs-gdb-from-command-line to start debugging directly.
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.
Research direction
The request proposes code -e cpp -d ... and code -e cpp -p ... as command-line entry points for the cpptools extension. Start by locating the extension’s command-line and debugger entry points, then verify that done means launching an executable with arguments or attaching to the specified process without launch.json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100