Is it possible to add a watch statement in Indium like you can in the node debugging utility?

from Debugger | Node.js v9.10.1 Documentation:

It is possible to watch expression and variable values while debugging. On every breakpoint, each expression from the watchers list will be evaluated in the current context and displayed immediately before the breakpoint's source code listing.

| improve this question | | | | |

An alternative method that I have found to be effective in lieu of a watch facility is adding a conditional breakpoint using M-x indium-add-conditional-breakpoint and using a console.log(...) expression. Since that always returns undefined, it will print to the *JS REPL* buffer whenever passing that line of code.

The behavior is less than ideal since it is different than a watch statement (i.e. multiple watch statements are not printed simultaneously).

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.