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(当前打开的文件) - ${relativeFile}
the current opened file relative to workspaceRoot(当前打开的文件,相对于workspaceRoot) - ${fileBasename}
the current opened file’s basename(当前打开文件的文件名, 不含扩展名) - ${fileDirname}
the current opened file’s dirname(当前打开文件的目录名) - ${fileExtname}
the current opened file’s extension(当前打开文件的扩展名) - ${cwd}
the task runner’s current working directory on startup
本文详细解析了VSCode中launch.json配置项的含义及用途,包括workspaceRoot、file、relativeFile等变量的具体应用场景,帮助开发者更好地理解并利用这些配置进行高效调试。
1590

被折叠的 条评论
为什么被折叠?



