From 2ce2d772c1b616d46fd4d6bc6c811e9ae10d3254 Mon Sep 17 00:00:00 2001 From: Xuan Zhou Date: Tue, 7 Nov 2017 17:22:47 +0800 Subject: [PATCH] support stopOnEntry (#133) * support stopOnEntry Signed-off-by: xuzho * update readme Signed-off-by: xuzho --- README.md | 1 + package.json | 8 +++++++- src/configurationProvider.ts | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7428b5..0d08729 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht - `projectName` - The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects. This setting also works when the debugger looks for the specified main class when launching a program. - `cwd` - The working directory of the program. - `env` - The extra environment variables for the program. +- `stopOnEntry` - Automatically stop program after launch. ### Attach diff --git a/package.json b/package.json index 34fbd3d..88c84d0 100644 --- a/package.json +++ b/package.json @@ -111,6 +111,11 @@ "type": "object", "description": "The extra environment variables for the program.", "default": {} + }, + "stopOnEntry": { + "type": "boolean", + "description": "Automatically stop after launch.", + "default": true } } }, @@ -160,7 +165,8 @@ "request": "launch", "cwd": "^\"\\${workspaceFolder}\"", "mainClass": "", - "args": "" + "args": "", + "stopOnEntry": true } }, { diff --git a/src/configurationProvider.ts b/src/configurationProvider.ts index b31c93f..92d81c6 100644 --- a/src/configurationProvider.ts +++ b/src/configurationProvider.ts @@ -38,6 +38,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration mainClass: item.mainClass, projectName: item.projectName, args: "", + stopOnEntry: true, }; }); resolve([...launchConfigs, {