如果要启动调试, 需要设置启动配置文件--launch.json. 单击调试视图顶部的配置齿轮图标
预定变量含义:
- ${workspaceRoot} the path of the folder opened in VS Code(VSCode中打开文件夹的路径)
- ${workspaceRootFolderName} the name of the folder opened in VS Code without any solidus(VSCode中打开文件夹的路径, 但不包含"/")
- ${file} the current opened file(当前打开的文件)
- ${fileDirname} the current opened file's dirname(当前打开文件的目录名)
- ${fileExtname} the current opened file's extension(当前打开文件的扩展名)