mercredi 28 janvier 2015

Chrome skips inline javascript code

When using the Mouse click option under the sources of the Event Listener Breakpoints option on the right, the debugger skips the following function code:



<html>
<head>
<script type="text/javascript">
function test()
{
return true;
}
</script>
</head>
<body>
<input type="button" onclick="return test();" value="test">
</body>
</html>


I have to push F8 then click the HTML input button again to be able to step into (F11) the function.


Otherwise I'm not able to debug what's inside the code. It's pretty frustrating because it happens every time I refresh the page. Is this a bug or is it meant to be like this?


Aucun commentaire:

Enregistrer un commentaire