Closed
Description
Dockerized AVA in debug mode is difficult to reach due to hardcoded binding to loopback interface (127.0.0.1).
file: ava/lib/worker/subprocess.js:188
require('inspector').open(options.debug.port, '127.0.0.1', true);
Hacking it to 0.0.0.0 fixes the problem.
It would be nice if it defaults to loopback, and read, for example, 'options.debug.ip' as an override.
There are couple workarounds but none of them are easy/convenient.
socat -d tcp-listen:xxxx,reuseaddr,fork tcp:127.0.0.1:xxxx &
But meh...