Add config required to debug statusd on VS Code
This commit is contained in:
parent
30cf19e0ae
commit
94da262a0b
|
@ -65,3 +65,4 @@ coverage.html
|
|||
Session.vim
|
||||
.undodir/*
|
||||
/.idea/
|
||||
/.vscode/
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"`.
|
||||
|
|
Loading…
Reference in New Issue