java - launch.json 参数的文档在哪里

标签 java visual-studio-code

“preLaunchTask”:“npm:编译”例如。我在 Java 工作。有“java:编译”吗?我需要找到代码并阅读它吗?我在 GitHub 中搜索,找到了它的用法:https://github.com/search?l=&q=preLaunchTask+language%3AJava&type=Code

我正在寻找有关我可能想用 launch.json 做的所有有趣事情的文档。

当我搜索 Google 时,我总是会出现 vscode hello world 页面或任何解释一切有多么简单的页面,我不确定什么是“开始”?

我对其中包含的所有内容的确切细节最感兴趣:

您的 hlq/.vscode/extensions/ask-toolkit.alexa-skills-kit-toolkit-1.0.1/.vscode$

//了解更多信息,请访问:https://go.microsoft.com/fwlink/?linkid=830387

我按照建议的链接,有很多一般信息,其中有更多信息和示例的链接,主要针对节点。 2019年也是这样吗?

我正在寻找“preLaunchTask 是一个键:值规范”。 关键 npm 的有效值为... java是... js 是... ruby 是...

最佳答案

这取决于您使用的调试器。

Note that the attributes available in launch configurations vary from debugger to debugger. You can use IntelliSense suggestions (Ctrl+Space) to find out which attributes exist for a specific debugger. Hover help is also available for all attributes.

Do not assume that an attribute that is available for one debugger automatically works for other debuggers too. If you see green squiggles in your launch configuration, hover over them to learn what the problem is and try to fix them before launching a debug session.

您正在使用的 Java 调试器应该提供有关其特定选项的信息。例如,java debugger列出了许多选项。

此外,还有一些启动属性,例如 vscode 提供的 preLaunchTask,这些属性在所有启动配置中都是必需的或可用的。有关它们的描述,请参阅launch.json attributes :

Here are some optional attributes available to all launch configurations:

preLaunchTask - to launch a task before the start of a debug session, set this attribute to the name of a task specified in tasks.json (in the workspace's .vscode folder).

postDebugTask - to launch a task at the very end of a debug session, set this attribute to the name of a task specified in tasks.json (in the workspace's .vscode folder).

internalConsoleOptions - this attribute controls the visibility of the Debug Console panel during a debugging session.

debugServer - for debug extension authors only: this attribute allows you to connect to a specified port instead of launching the debug adapter.

serverReadyAction - if you want to open a URL in a web browser whenever the program under debugging outputs a specific message to the debug console or integrated terminal. For details see section Automatically open a URI when debugging a server program below.

最后一个链接列出了更多内容。

关于java - launch.json 参数的文档在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58002420/

相关文章:

java - Android 的新 Google Play 游戏服务排行榜 API

java - 如何从包含 double 和字符串的文本文件中打印 double ?

java - 有没有等同于 Play! 的桌面?框架?

java - 当对象属于某种类型时在桌面 View 上显示图像

visual-studio-code - 如何在 Visual Studio Code 上通过鼠标单击事件应用书签?

powershell - 在脚本文件夹中打开 Visual Studio Code Powershell 终端

c# - 找不到模块 'eslint-config-defaults/configurations/eslint'

visual-studio-code - 查看 vscode 中未保存的更改

javascript - 在 Visual Studio Code 中安装 Brain.js 时出错

java - 声明要在数组中使用的枚举?