Add config required to debug statusd on VS Code

This commit is contained in:
Pedro Pombeiro 2018-04-27 17:55:56 +02:00 committed by Pedro Pombeiro
parent 30cf19e0ae
commit 94da262a0b
3 changed files with 27 additions and 0 deletions

1
.gitignore vendored
View File

@ -65,3 +65,4 @@ coverage.html
Session.vim
.undodir/*
/.idea/
/.vscode/

22
.vscode/launch.example.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug statusd",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceRoot}/cmd/statusd",
"env": {},
"args": ["-shh", "-les", "-discovery=true"],
"showLog": true,
"output": "${workspaceRoot}/build/bin/statusd.debug"
}
]
}

View File

@ -47,6 +47,10 @@ Run
adb shell tail -f sdcard/Download/geth.log
```
## IDE Debugging
If you're using Visual Studio Code, you can rename the `.vscode/launch.example.json` file to `launch.json` so that you can run the app with the debugger attached.
# Testing
To setup accounts passphrase you need to setup an environment variable: `export ACCOUNT_PASSWORD="secret_pass_phrase"`.