There are 2 ways to declare a break point.
The break-point in DevTools GUI (ctrl+b
or right / left click
on the line number in source code side bar).
This one needs some attention. To set up a break point from within GUI the desired JavaScript needs to be loaded into memory first, so that it is available for selection. ctrl+p
The first one (mapped via autoAddWorkSpace
) is ready to edit and save from within DevTools.
The second one (loaded into memory) is awaiting custom [conditional] breakpoints and is always surrounded by the Node.js module scope (function (exports, require, module, __filename, __dirname) {});.
There is a way to disable the mapping via Local and global configuration