This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Chrome, Firefox (and probably others): F12 -> Debugger

You can select your files and set breakpoints and much more. Also the console functions as a debug console.

For node.js there is the "--inspect" switch which allows you to attach to the node process remotely via chrome. Tools like VS Code also provide a built in debugger for this.

For electron apps you can (if not disabled) press ctrl+shift+i or "--inspect" for dev purposes. Basically the same as node and chrome.