microsoft / microsoft/vscode-java-debug

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

Open
#884 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement feature request launch
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Java debugger selects its launch runtime and how java.configuration.runtimes relates to the Maven POM's java-version. The work is complete when a launch configuration can explicitly select a configured Java environment, overriding the project's declared version for run and debug.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
devtools, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.