microsoft / microsoft/vscode-java-debug

Feature request: Launch configuration option to force Java execution environment used for run/debug

未关闭
#884 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged enhancement feature request launch
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

Feature request: Please add a way to force a specific Java execution environment (from the environments defined by "java.configuration.runtimes") to be used by the debugger to launch the application.

For compatibility reasons, the Maven project files defines "1.8" as "<java-version>". However, in several environments (HiDPI), the use of at least Java 11 is required to run the application correctly. At the moment, there seems to be no way to force the VSCode Java debugger to use Java 11 and overwrite the "<java-version>" setting from the Maven POM file.

Environment
  • Operating System: Windows 10
  • JDK version: Java SE 1.8 and Java SE 11
  • Visual Studio Code version: 1.49.1
  • Java extension version: 0.10.0
  • Java Debugger extension version: 0.28.0
Current Result

Visual Studio Code Java debugger is always launching using Java SE 1.8.

Expected Result

Can force the Visual Studio Code Java debugger to use Java 11 to run/debug the application.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先跟踪 Java 调试器如何选择其启动运行时,以及 java.configuration.runtimes 与 Maven POM 的 java-version 之间的关系。当启动配置可以显式选择一个已配置的 Java 环境,从而覆盖项目为运行和调试声明的版本时,这项工作就完成了。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript
领域
devtools, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。