Skip to content

Commit 5779d6e

Browse files
committed
feat: enable ag-chain-cosmos Node.js debugging
1 parent 9b62335 commit 5779d6e

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

packages/cosmic-swingset/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN go mod download
99

1010
COPY Makefile* *.go ./
1111
COPY app/ app/
12+
COPY bin/ bin/
1213
COPY x/ x/
1314
COPY cmd/ cmd/
1415
COPY lib/*.go lib/

packages/cosmic-swingset/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ scenario1-run-chain:
6565
scenario1-run-client:
6666
AG_SOLO_BASEDIR=t7 ve3/bin/ag-setup-solo --webhost=127.0.0.1:$(BASE_PORT)
6767

68-
AGC = ./lib/ag-chain-cosmos
68+
AGC = ./bin/ag-chain-cosmos
6969
AGCH = ag-cosmos-helper
7070
scenario2-setup: all scenario2-setup-nobuild
7171
scenario2-setup-nobuild:
@@ -173,7 +173,7 @@ compile-gyp:
173173
install: go.sum
174174
go install -v $(MOD_READONLY) $(BUILD_FLAGS) ./cmd/ag-cosmos-helper
175175
bindir="$${GOBIN-$${GOPATH-$$HOME/go}/bin}"; \
176-
ln -sf "$$PWD/lib/ag-chain-cosmos" "$$PWD/bin/ag-nchainz" "$$bindir/"
176+
ln -sf "$$PWD/bin/ag-chain-cosmos" "$$PWD/bin/ag-nchainz" "$$bindir/"
177177

178178
go.sum: go.mod
179179
@echo "--> Ensure dependencies have not been modified"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#! /bin/bash
2+
real0=$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")
3+
thisdir=$(cd "$(dirname -- "$real0")" && pwd -P)
4+
nodeFlags=()
5+
while test $# -gt 0; do
6+
case "$1" in
7+
--inspect*) nodeFlags+=( "$1" ) ;;
8+
*) break ;;
9+
esac
10+
shift
11+
done
12+
13+
exec node ${nodeFlags[@]} "$thisdir/../lib/chain-entrypoint.js" ${1+"$@"}

0 commit comments

Comments
 (0)