Debugging in Node.jhs

Do I have to do anything special to debug a node.js app (with Express on top)? I just tried the obvious, clicking on run in the debugger, and got the following:
Debugger attached.
Waiting for the debugger to disconnect…
node:internal/modules/cjs/loader:936
throw err;

Thanks for any insights!