I expect when I inject a JavaScript debugger expression into my JavaScript code that the program stops at that point and the debugger opens, showing a "breakpoint".
I do not see this at all.
Here is my code.
<html> <script type="text/javascript"> debugger; alert("Hello world!") </script> <body> <p>Hello world</p> </body> </html>
When I run it, I go straight to the alert popup. What step am I missing?
My question is: Why does the JavaScript debugger not stop in the debugger instruction?
(Just to clarify - I had the developer tools open, but on the console tab, not on the Sources tab.)
source share