Add remote debugging support to fixturenet-geth. #113

Merged
telackey merged 3 commits from telackey/dbg into main 2023-01-11 18:54:22 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1c78cda729 - Show all commits

View File

@ -17,9 +17,9 @@ services:
cap_add:
- SYS_PTRACE
environment:
CERC_REMOTE_DEBUG: "true"
CERC_RUN_STATEDIFF: "detect"
CERC_STATEDIFF_DB_NODE_ID: 1
REMOTE_DEBUG: "true"
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
image: cerc/fixturenet-eth-geth:local

View File

@ -10,7 +10,7 @@ python3 -m http.server 9898 &
cd $HOME_DIR
START_CMD="geth"
if [ "true" == "$REMOTE_DEBUG" ] && [ -x "/dlv" ]; then
if [ "true" == "$CERC_REMOTE_DEBUG" ] && [ -x "/dlv" ]; then
START_CMD="/dlv --listen=:40000 --headless=true --api-version=2 --accept-multiclient exec /usr/local/bin/geth --continue --"
fi