Thanks Fabrice. Followed your steps, but not everything goes the same way as you described. What I did:
- Added
EXPOSE 9392 in /sandbox/images/algod/Dockerfile
- Added binding
- 9392:9392 in docker-compose.yml file for algod service
- Cleaned sandbox, re-build images and started sandbox
- Inside sandbox run this command
tealdbg debug --remote-debugging-port 9392 --listen "" simple.teal. But it didn’t work. There is no flag by name listen, so it says ‘unknows flag’. Tried without that flag, but no success.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d20e5507f47d sandbox_indexer "/tmp/start.sh" 3 minutes ago Up 3 minutes 0.0.0.0:8980->8980/tcp algorand-sandbox-indexer
e86d9e1eac9c postgres:13-alpine "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 0.0.0.0:5433->5432/tcp algorand-sandbox-postgres
102a27bf8918 sandbox_algod "/opt/start_algod.sh" 3 minutes ago Up 3 minutes 0.0.0.0:4001-4002->4001-4002/tcp, 0.0.0.0:9392->9392/tcp algorand-sandbox-algod
P.S. I tried replacing localhost with docker container ip address in tealdbg generated devtools url, but no changes.
Could be the problem that exposed port is tcp, but maybe it should be ws? Any suggestions?