bitcoin-use vscode debug
use vscode as ide for bitcoin
- make sure compile bitcoin manually successful
- ubuntu 16.04 install vscode
- install c++ (microsoft) and C++ Intellisense
- open project folder, press F5 debug select C++(GDB/LLDB), will auto generate a file
launch.json. need some modification
"program": "${workspaceRoot}/src/primecoind", //setup application path |
- ctrl+p, input task, select
config build taskwill generate a file tasks.json
do some modify"command":"BDB_PREFIX=/home/ubuntu/prime/db-4.8.30.NC/build_unix/build BDB_INCLUDE_PATH=${BDB_PREFIX}/include BDB_LIB_PATH=${BDB_PREFIX}/lib cd ${workspaceFolder}/src && make -f makefile.unix"
- press
crtl + shift + Bto build. setup breakpoint and tap F5 run debug