docs: add hint about how to attach VSCode to the suspended Java process (#19551)

This commit is contained in:
Joscha Feth 2024-09-12 09:59:57 +01:00 committed by GitHub
parent d02aae7469
commit 5c6b8f3b16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,23 @@ The steps are shown here for a specific version of the generator, but apply the
```
* Set breakpoints in code, and then attach your remote debugger from your IDE (see above). The generator will automatically unblock once the remote debugger is attached. You can now step through the code.
For VSCode you can use the following launch configuration (`launch.json`):
```json
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"request": "attach",
"hostName": "localhost",
"port": 5005
}
]
}
```
to attach the the suspended process above.
## Logs
You can try to enable debugging log with `-Dlog.level=debug` option to the `JAVA_OPTS` environment variable to see more information: