How to get VS Code Debug to work with Foreman and nf start
问题 I am using this base Heroku project for a Node cluster environment. https://github.com/heroku-examples/node-workers-example However since it uses foreman to create multiple processes on start, I can't figure out how to connect it to VS Code Debug using a launch.json file like I normally would. This is the start command. "scripts": { "start": "nf start", } 回答1: It took me a little while to figure out a workable debugging methodology.. but to debug the server, this is what I am currently using: