From c33bb189e831a8558574b8ec8d6c59bd7f96d30c Mon Sep 17 00:00:00 2001 From: Jinbo Wang Date: Wed, 20 Sep 2017 14:40:37 +0800 Subject: [PATCH] Add launch.json configuration snippets for vscode-java-debug (#23) * Add launch.json configuration snippets for vscode-java-debug Signed-off-by: Jinbo Wang * improve description text --- package.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/package.json b/package.json index c6e28a3..b893f3a 100644 --- a/package.json +++ b/package.json @@ -144,6 +144,37 @@ "${workspaceRoot}" ] } + ], + "configurationSnippets": [ + { + "label": "Java: Launch Program", + "description": "Add a new configuration for launching a java program.", + "body": { + "type": "java", + "name": "Debug (Launch)", + "request": "launch", + "mainClass": "", + "args": "", + "sourcePaths": [ + "${workspaceRoot}" + ] + } + }, + { + "label": "Java: Attach to Remote Program", + "description": "Add a new configuration for attaching to a running java program.", + "body": { + "type": "java", + "name": "Debug (Attach)", + "request": "attach", + "hostName": "localhost", + "port": 0, + "timeout": 30000, + "sourcePaths": [ + "${workspaceRoot}" + ] + } + } ] } ]