I'm debugging a remote Node.js application running on localhost with a "Node.js remote debug" configuration (see https://www.jetbrains.com/help/idea/2017.1/running-and-debugging-node-js.html#Node.js_remote_debug). When I use nodemon to automatically restart the application whenever files are changed, the remote debugger looses the connection.
Is there a way to re-attach the debugger when node is restarted? (e.g. something similar to the "restart" option in VSCode (see https://github.com/bdspen/nodemon_vscode)?