2017-06-05 1129 views

回答

0

要運行/調試當前打開的腳本IDE替換爲${command.AskForScriptName}${file}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" 
      } 
     } 
    ] 
} 

你也可以硬編碼一個特定的文件:

的Linux:

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

的Windows:

"scriptPath": "${workspaceRoot}\\test.sh" 
相關問題