SmartMesh Developer Community

Spectrum 链开发--IDE 断点调试介绍

2018-09-05  本文已影响34人  ZhangHQ

Spectrum 链开发--IDE 断点调试介绍

作者:GirpZhang

实验环境

需要完成 Visual Studio Code + GoLang 开发环境配置


{

    "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":"E:/GoPath",

                "GOROOT":"E:/Go"

            },

            "args": [],

            "showLog": true

        }

    ]

}

下载 Spectrum 代码


git clone git@github.com:SmartMeshFoundation/Spectrum.git

调试准备


Failded to continue:"Cannot find Delve debugger. Install from https://github.com/derekparker/delve & ensure it is in your "GOPATH/bin" or "PATH"

上一篇下一篇

猜你喜欢

热点阅读