Today’s is a short follow-up to the post about debugging Node.js programs in a Vagrant virtual machine. It turns out that it lacked one important piece. It’s all and good in an artificial environment of an isolated script – but when we debug a real Node.js application, the server will timeout while we are slowly stepping through code. Since I happen to use nginx, I needed to find a way to increase the default value of one minute. So, after some searching through the Interwebs, I found this setting:
http { # ... proxy_read_timeout 1h; }
to be put in /etc/nginx/nginx.conf
. After reloading the config we have as much as one hour to step through our app. Happy debugging!