Skip to content Skip to sidebar Skip to footer

Failed to Continue Cannot Find Delve Debugger

Configure the startup item

Open the test panel: vscode-> View -> debugging

Add debug target: Click Add Configuration

Add a target debug configuration

{     "version": "0.2.0",     "configurations": [         {             "name": "Launch",             "type": "go",             "request": "launch",             "mode": "debug",             "remotePath": "",             "port": 2345,             "host": "127.0.0.1",             "program": "${fileDirname}",             "env": {                 "GOPATH":"D:/Develop/vscodegolang"             },             "args": [],             "showLog": true         }     ] }          

"POST", "host" is automatically generated by the GO plugin, "env" is set to set the environment variable, set to the project directory containing BIN, SRC folder

Prepare debugged plugin

Select Main.go to debug, click F5 to report error tips: Failded to Continue: "Cannot Find Delve Debugger. Install from https://github.com/derekparker/delve & ensure it is in your" gopath / bin "OR "Pat"

Use the command to compile the debugger: Go get GitHub.com/derekparker/delve/cmd/dlv put the DLV debugger in the Gopath's bin directory

Start debugging

Select main.go to debug, click F5 to start debugging

Debug shortcut:

F9 switch breakpoint

      F10 Step over

      F11 Step in

      Shift+F11 Step out

Note: When some structural members are displayed directly, they can select the variable name directly, add to monitor, or right-click "debug: evaluation"

Multi-project debugging

In Launch.json, you can add multiple setup entrance ports to open different target debugging through the corresponding configuration in the debug panel.

In Launch.json, you can add multiple setup entrance ports to open different target debugging through the corresponding configuration in the debug panel.  {     "version": "0.2.0",     "configurations": [         {             "name": "client",             "type": "go",             "request": "launch",             "mode": "debug",             "remotePath": "",             "port": 2345,             "host": "127.0.0.1",             "program": "${fileDirname}",             "env": {                 "GOPATH":"D:/Develop/vscodegolang"             },             "args": [],             "showLog": true         },          {             "name": "server",             "type": "go",             "request": "launch",             "mode": "debug",             "remotePath": "",             "port": 2345,             "host": "127.0.0.1",             "program": "${workspaceRoot}/src/server",             "env": {                 "GOPATH":"D:/Develop/vscodegolang"             },             "args": [],             "showLog": true         }     ] }  "$ {fileDirName}" in "program" is started as a current selected file   It is more recommended to use "$ {Workspaceeroot}" of "program" to configure the package name as the startup point.          

ubuntu+vscode+C++ debug

0. Click the debug button on the left of Vscode to enter the debug mode, but there is no Configuration file in the beginning. add Configuration, then select C++, VScode will automatically generate one...

Use VSCode to debug Jest

0. Environment Node version: 8.12.0 Operating system: windows10 1. Configurationlaunch.json 2. Add code in package.json 3. Start Jest debugging Execute code 4. Breakpoint debugging By mouse, or byCtrl...

vscode debug nodejs

1. Install nodejs 2. Install vscode 3.Vscode installation Debugger for chrome plugin 4. New NodeJS-Test folder, create a new Server.js blank file, add content: 5. Set breakpoints in this line of Res.W...

LINU VSCODE GDB Debug

Official website downloadhttps://code.visualstudio.com/ Download. DEB file Path under the terminal CD to your file   2. After installation, open vscode (which can be found from the search fr...

vscode debug html file

1. VSCode debugged HTML file 1.1. UseDebugger for ChromeDebug 1.1.1. Debugging based on local File configuration 1.1.2. Debugging based on server configuration 1.1.2.1. Start the server 1.1.2.2. Confi...

VScode debug React config

1. Install the vscode plugin Debugger for Chrome 2. Configure WebPack Webpack.config.js Add Source Map 3. Configure .vscode / launch.json Press F5 to choose Chrome, will generate .vscode / launch.json...

Ros+vscode debug

1. Open vscode in our ROS workspace directory: 2. Output Compile Command File: 3. Generate C_CPP_Properties.json 4. Generate task.json files, set catkin_make 5.GDB Debug configuration, configure the l...

Vscode debug VUE project

prerequisites   First you have to install Chrome and VS Code. Also make sure you have installed in VS CodeDebugger for ChromeThe latest version of the extension.   We need to update the WebP...

VSCode debug Vuejs code

1. Install in VSCodeDebugger for ChromePlug-in 2. In the RUN or Debug Type of vscode, find the gear button. Click to select Chrome to create and open the launch.json file 3. Change the configuration i...

daddariochimand.blogspot.com

Source: https://www.programmerall.com/article/5783616431/

Post a Comment for "Failed to Continue Cannot Find Delve Debugger"