support stopOnEntry (#133)

* support stopOnEntry

Signed-off-by: xuzho <xuzho@microsoft.com>

* update readme

Signed-off-by: xuzho <xuzho@microsoft.com>
This commit is contained in:
Xuan Zhou 2017-11-07 17:22:47 +08:00 committed by GitHub
parent ae3b9d7996
commit 2ce2d772c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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
}
},
{

View File

@ -38,6 +38,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
mainClass: item.mainClass,
projectName: item.projectName,
args: "",
stopOnEntry: true,
};
});
resolve([...launchConfigs, {