microsoft / microsoft/vscode-java-debug
Main Method Not found
Offen
@testforstephen arbeitet bereits daran.
Seit 08.10.2022.
ai-triaged
bug
feature request
launch
ux
- Vorherrschende Sprache
- TypeScript
- Sterne
- 591
- Forks
- 429
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 19
Beschreibung
The run/debug button on the editor does not respect the launch.json file. I have a particular project which the main class is actually in separate jar file. After configuring the runtime classpath and mainClass in the launch.json, I am able to run it fine using the command debug: start without debugging. However, the run/debug button complains that the main method is not found.
Environment
- Operating System: macOS 12.6
- JDK version: JDK 1.8
- Visual Studio Code version: 1.7.1.2
- Java extension version: RedHat 1.11.0
- Java Debugger extension version: 0.44.0
Steps To Reproduce
- Create a jar file with a main function
- Add it to your classpath and configure the name of the main class
- A project that implements the missing functions in that jar file
- Click the run button
(Can not attach the project)
Current Result
Main method not found
Expected Result
This button should respect to my launch.json file
Additional Informations
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.