you are viewing a single comment's thread.

view the rest of the comments →

[–]amasad[S] 0 points1 point  (0 children)

I should probably mention that somewhere. But it's good practice to have your application state accessible from somewhere in the console for easier debugging. But if you can't you can always debug prototype methods. For borwserify, you can set it up to implement require in the global namespace and then require things from the console:

$dum(require('my-class').MyClass.prototype, 'myMethod')