microsoft / microsoft/vscode-java-debug
Can not add additional classpath
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 591
- Forks
- 429
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 19
Description
[provide a description of the issue]
Environment
- Operating System: wsl (Arch)
- JDK version: 1.8
- Visual Studio Code version: 1.85.1
- Java extension version: v1.25.1
- Java Debugger extension version: v0.55.0
Steps To Reproduce
-
my launch.json
{
"type": "java",
"name": "Application",
"request": "launch",
"mainClass": "Application",
"projectName": "roc-domestic-web",
"shortenCommandLine": "auto",
"classPaths": [
"$Auto",
"~/workspace/domestic-shopping/roc-domestic-common/target/classes/",
],
} -
launch command line
/usr/bin/env /usr/lib/jvm/java-8-openjdk/jre/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:41833 -cp /tmp/cp_aiaqxn8lxgly17gkhnct4os82.jar Application
Current Result
classpath can't have the classpath that I added
Expected Result
can append my customized classpath
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the launch.json configuration and the generated Java launch command, especially how the classPaths entries become the temporary -cp JAR. Reproduce the launch using the listed WSL, JDK, VS Code, and extension versions, then verify that the customized target/classes path is included in the effective classpath.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100