Skip to content

Debug Quarkus #3515

@edyok

Description

@edyok

Hi all,
I'm trying to use mirrord to debug Java Quarkus application using vscode extension or CLI.
My mirrord config is:
{
"agent": {
"log_level": "info",
"communication_timeout": 60,
"flush_connections": false
},
"target": {
"path": {
"pod": "xxxx"
},
"namespace": "yyyy"
},
"feature": {
"env": true,
"network": true,
"fs": {
"mode": "write",
"read_write": ".+\.txt",
"read_only": [
".+\.yaml"
],
"local": [
".+\.js",
".+\.mjs"
],
"not_found": [
"\.config/gcloud"
]
}
}
}

My launch json is:
...
{
"preLaunchTask": "quarkus:dev",
"type": "java",
"request": "attach",
"hostName": "localhost",
"name": "Debug Quarkus application",
"port": 5005,
}
....

but the plugin doesn't start when i run debugger, so I'm trying to use cli with command like:

mirrord exec -f -- ./mvnw quarkus:dev

but mirrord can't find the debug port to bind because the parser look for direct java command line, so I tryied something "unusual" (after take a look to the source code searching a workaround):

MIRRORD_DETECT_DEBUGGER_PORT=nodeinspector; mirrord exec -f -- ./mvnw quarkus:dev -Ddebug=9229

Can someoune suggest to me a solution?

Tnx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions