I am using pre_debug_task to start a gradle process and want to attach debugger to this. But from logs it looks like it is waiting for pre-debug-task to be completed.
configuration
{
"folders":
[
{
"path": ".",
}
],
"debugger_configurations":
[
{
"type": "java",
"name": "Debug Gateway",
"request": "attach",
"hostName": "localhost",
"port": 5005,
"mainClass": "com.shubham.dogra.Gateway",
"projectName": "gateway",
"pre_debug_task": "run_gateway"
},
],
"debugger_tasks":
[
{
"name" : "run_gateway",
"shell_cmd": "./gradlew bootRun -p gateway --debug-jvm",
"working_dir": "${folder}",
"file_regex": "^.*Listening for transport dt_socket at address: 5005.*$",
}
]
}
From logs it looks like debugger is waiting for pre_debug_task to be completed and then it will run the attach process. Is there any way we can attach degugger right way when pre_debug_task is running without errors?
I am using
pre_debug_taskto start a gradle process and want to attach debugger to this. But from logs it looks like it is waiting for pre-debug-task to be completed.configuration
{ "folders": [ { "path": ".", } ], "debugger_configurations": [ { "type": "java", "name": "Debug Gateway", "request": "attach", "hostName": "localhost", "port": 5005, "mainClass": "com.shubham.dogra.Gateway", "projectName": "gateway", "pre_debug_task": "run_gateway" }, ], "debugger_tasks": [ { "name" : "run_gateway", "shell_cmd": "./gradlew bootRun -p gateway --debug-jvm", "working_dir": "${folder}", "file_regex": "^.*Listening for transport dt_socket at address: 5005.*$", } ] }From logs it looks like debugger is waiting for pre_debug_task to be completed and then it will run the attach process. Is there any way we can attach degugger right way when pre_debug_task is running without errors?