Last active
January 31, 2017 06:36
-
-
Save michael-mafi/2c371812d414143ed57ba08fc528da49 to your computer and use it in GitHub Desktop.
runWithDebugger.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function runWithDebugger(func, args){ | |
| if(args.length>=1){ | |
| debugger; | |
| return func.call(this, args); | |
| } | |
| } |
Author
Hi Ivo thank you just saw this going to work on that thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's been four days since you posted this, but I only now see it...
consider this call to
runWithDebugger:This will result in an error. You have to make sure
runWithDebuggercan also debug a function that doesn't take any arguments.