Zend certified PHP/Magento developer

How to Debug JavaScript written in the console?

So I have a function that I wrote out to do some testing in the console, but when I run it, I’m not getting the expected result. How can I add a breakpoint to js I wrote in the console?