Add remote debugging support to fixturenet-geth. #113
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user