You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have an event handler that is only one line the debugger won't pickup breakpoints set on it. See examples below and not the // a breakpoint set here... comments.
Does NOT Work
<!DOCTYPEhtml><html><head><title></title><script>
var clicker = () =>{console.log("buyrger");document.getElementById("blah").innerHTML="blaher";repeat();}; // a break point here is not detect and debugger does not stop
var repeat = () =>{console.log("yeah this does nothing.");};
</script></head><body><buttononclick="clicker();">click me</button><pid="blah"></p></body></html>
Works
<!DOCTYPEhtml><html><head><title></title><script>
var clicker = () =>{console.log("burger");// a breakpoint here is detected and debugger stopsdocument.getElementById("blah").innerHTML="blaher";repeat();};
var repeat = () =>console.log("yeahthisdoesnothing.");</script></head><body><buttononclick="clicker();">click me</button><pid="blah"></p></body></html>
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
If you have an event handler that is only one line the debugger won't pickup breakpoints set on it. See examples below and not the
// a breakpoint set here...
comments.Does NOT Work
Works
The text was updated successfully, but these errors were encountered: