Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd ability customize resolved classpaths #108
Conversation
|
@claycephas thanks for the PR. A little concern about the option |
| @@ -45,6 +45,8 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
| - `args` - The command line arguments passed to the program. | |||
| - `sourcePaths` - The extra source directories of the program. The debugger looks for source code from project settings by default. This option allows the debugger to look for source code in extra directories. | |||
| - `classPaths` - The classpaths for launching the JVM. If not specified, the debugger will automatically resolve from current project. | |||
| - `classPathsToAdd` - Additional classpaths to add before launching the JVM. | |||
| - `classPathsToRemove` - Classpaths to remove before when launching the JVM. | |||
testforstephen
Oct 24, 2017
Contributor
A little concern about this option. Can you list some scenarios that needs this option?
A little concern about this option. Can you list some scenarios that needs this option?
|
When debugging my maven-based project with VS Code, it is including test classes in the classpath. However, IntelliJ and Eclipse don't include those test classes in the classpath. I thought the |
|
Including test classes in auto resolved maven classpaths looks like a bug. I open a bug for this. #111 And the existing if we change the current |
|
How about add a flag option to turn auto resolved true/false and |
|
@claycephas @jopbrown Your suggestion could be a choice. And i also find a new choice to keep compatible with current behavior. Reference to |
|
@testforstephen |
|
@testforstephen Regarding placing generated classpaths in @jopbrown Regarding your suggestion, there'd be no way to remove a specific problematic classpath (e.g. like The thing I like about |
|
@claycephas We're supporting java 9, it uses a new option |
Adds the following to
launch.json:classPathsToAdd- Additional classpaths to add before launching the JVM.classPathsToRemove- Classpaths to remove before when launching the JVM.Fixes #93