microsoft / microsoft/vscode-cpptools
Feature request: start to debug c++ directly from command line.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Die Anfrage schlägt code -e cpp -d ... und code -e cpp -p ... als Befehlszeileneinstiegspunkte für die cpptools-Erweiterung vor. Beginne damit, die Befehlszeilen- und Debugger-Einstiegspunkte der Erweiterung zu finden, und überprüfe anschließend, dass „done“ bedeutet, eine ausführbare Datei mit Argumenten zu starten oder eine Verbindung mit dem angegebenen Prozess herzustellen, ohne launch.json.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript
- Bereich
- cli, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100