microsoft / microsoft/vscode-cpptools

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

Aperta
#1,812 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@pieandcakes ci sta già lavorando.

Dal 10/4/2018.

debugger embedded
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.