A compatibility wrapper around the BrightScript debug protocol https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md
Node-debug supports many different hit conditions (see this link for more info).
Currently the debug protocol only supports a single variation (when this breakpoint has been hit x times, then stop every time after). If the debug protocol won't implement all the other variations, then we could abuse the new conditional breakpoints to leverage our own hit count, by adding an expression like this. Consider the hit condition % 5
(function(): try : m.hitCount_abcdef++ : catch e : m.hitCount_abcdef= 1 : end try : return hitCount_abcdef mod 5 = 0 : end function)()
Node-debug supports many different hit conditions (see this link for more info).
Currently the debug protocol only supports a single variation (when this breakpoint has been hit x times, then stop every time after). If the debug protocol won't implement all the other variations, then we could abuse the new conditional breakpoints to leverage our own hit count, by adding an expression like this. Consider the hit condition
% 5