2017-06-05 11 views

Antwort

0

To/Debug laufen aktuell geöffneten Skript in IDE ersetzen ${command.AskForScriptName} mit ${file} in launch.json:

{ 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "name": "Bash-Debug (type in script name)", 
      "type": "bashdb", 
      "request": "launch", 
      "scriptPath": "${file}", 
      "commandLineArguments": "", 
      "windows": { 
       "bashPath": "C:\\Windows\\sysnative\\bash.exe" 
      }, 
      "linux": { 
       "bashPath": "bash" 
      }, 
      "osx": { 
       "bashPath": "bash" 
      } 
     } 
    ] 
} 

Sie können auch eine bestimmte Datei codieren:

Linux:

"scriptPath": "${workspaceRoot}/test.sh" 

Fenster:

"scriptPath": "${workspaceRoot}\\test.sh" 
Verwandte Themen