microsoft / microsoft/java-debug
References to launch.json in error messaging may be misleading
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 409
- Forks
- 204
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
https://github.com/microsoft/java-debug/search?q=launch.json
There appear to be only two references to launch.json in this repository. There does not appear to be any part of the code actually reading or referencing or introspecting a file named launch.json.
End users may find references to launch.json confusing if a third party tool has launched the debugger to connect to a java process and did not pass in a "projectName" to the call. While I realize this is a bit outside the scope of this repository, an example would be a vscode extension using the vscode.debug API (which flows to the https://github.com/microsoft/vscode-java-debug extension) and not setting a project name. In this case there is no launch.json file.
private async startDebugger(port: string) {
this.port = port;
vscode.debug.startDebugging(undefined, {
type: 'java',
request: 'attach',
name: 'Debug (Remote)',
hostName: 'localhost',
port,
projectName // set to undefined as an example
});
}
Since this repository itself does not read a launch.json at all, and all configuration is passed in via a Debug Adapter, not an existing file, these references to a file name are very misleading.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
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.
Rechercherichtung
Beginne mit der Repository-Suche nach launch.json, die im Issue verlinkt ist, und prüfe die beiden Verweise auf Fehlermeldungen. Bestimme eine Formulierung, die nicht impliziert, dass dieses Repository eine launch.json-Datei liest; abgeschlossen ist die Aufgabe, wenn die irreführenden Verweise für Debugger-Sitzungen, die über die VS Code debug API gestartet werden, klargestellt oder entfernt wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100