microsoft / microsoft/vscode-cpptools

In launch.json debugServerPath always be type string,It can't work on PowerShell

Offen
#1,812 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@pieandcakes arbeitet bereits daran.

Seit 10.4.2018.

debugger embedded
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

CPUs Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 2712)
Memory (System) 19.94GB (14.97GB free)
Process Argv F:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
include-autocomplete ajs 0.0.4
rtf ale 0.3.0
bracket-pair-colorizer Coe 1.0.27
tslint eg2 1.0.28
CppSnippets har 0.0.13
vscode-cudacpp kri 0.1.1
cortex-debug mar 0.1.19
vscode-clang mit 0.2.2
python ms- 2018.3.1
cpptools ms- 0.16.1
makefiles-support-for-vscode nae 0.0.3
cmake twx 0.0.17
cmake-tools vec 0.10.4

In order to debug STM32,I used the opencod on win10 and changed launch.json.
"debugServerPath": "F:\gcc\GNUMCUEclipse\OpenOCD\0.10.0-7-20180123-1217\bin\openocd.exe",
"debugServerArgs": "-f ${workspaceRoot}\st_nucleo_f0.cfg",
But it can't work,the log show like this:

1: (227) Starting: "F:\gcc\GNUMCUEclipse\OpenOCD\0.10.0-7-20180123-1217\bin\openocd.exe" -f G:\FMD\VScode\code\mbed-os-example-blinky\st_nucleo_f0.cfg
1: (20235) <-logout
C disconnect: {"restart":false}

I had try to comments the "debugserverPath" and "debugServerArgs".
Then Run F:\gcc\GNUMCUEclipse\OpenOCD\0.10.0-7-20180123-1217\bin\openocd.exe -f G:\FMD\VScode\code\mbed-os-example-blinky\st_nucleo_f0.cfg on PowerShell before
debug.
Everything is OK.
I think there are something wrong with the debugServerPath in launch.json
The Double quotes case it can't work on powershell.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.