delve icon indicating copy to clipboard operation
delve copied to clipboard

Improve debug console output when building the debuggee in DAP

Open gfszr opened this issue 3 years ago • 2 comments
trafficstars

Delve version: 1.9.1

Right now, when using a simple launch configuration such as:

{
        "name": "debug main",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "program": "${workspaceFolder}/main.go",
}

The delve debug adapter first builds the program in the background and then launches it, and in case the build fails it sends an OutputEvent back indicating the error. On large projects, building might take some time, so better clarification can be much helpful when just waiting for the launch request to finish. I suggest output events indicating that a build is happening, perhaps with the build command line, just as output events are sent if there's an error.

gfszr avatar Oct 23 '22 19:10 gfszr

@aarzilli I might be able to help with that one, if you have any guidelines before working on it 👍

gfszr avatar Oct 24 '22 10:10 gfszr

It happens inside onLaunchRequest. GoBuildCombinedOutput and GoTestBuildCombinedOutput themselves can not be changed because they are used elsewhere.

aarzilli avatar Oct 24 '22 12:10 aarzilli