Open nietzscheson opened 5 years ago
I am certain that the solution is solving something here. By default, the node --inspect command points to the address http://127.0.0.1. When working with Docker images you must point to: http://0.0.0.0:
### supervisor.js. Line 320.
- execArgv.push(`--inspect=${opts.port}`);
+ execArgv.push(`--inspect=${this.config.bindHost}:${opts.port}`);
I have created this docker-compose environment for more information:
Environment details
Steps to reproduce
The result:
This page isn’t working
Trying to avoid suspicion of whether the node --inspect does not work correctly, I expose port 9228 and exec the container:
docker-compose exec node sh
. I am going to functions:cd functions
and I run the node inspector:node --inspect-brk = 0.0.0.0: 9228 index.js
.Now, when I trying open http://0.0.0.0:9228/json, this works:
I really do not know what may be happening. The documentation is null. I have not found anything related. The information that there is to debug from a Docker container does not work for me. Any solution I will be grateful.