Hi, whenever i use chrome developer tools to either debug something, i get into a mess and am not able to debug it
Example 1)
<html>
<head>
</head>
<body>
<script src="app.js"></script>
</body>
</html>
function b() {
console.log('Called b!');
}
b();
console.log(a);
var a = 'Hello World!';
console.log(a);
these are two working files . app.js and index.html. I execute this on brackets, open the console, which shows this:
Called b!
app.js:7 undefined
app.js:11 Hello World!
Now, when i want to debug this code I will copy the code into snippet:
and then i will add the breakpoints:
then right click, continue to here:
and then i press “step into next function call” or either forward button to continue to the snippet:
But then i get this:
So my question is, how do i exit this situation so that i can allow myself to debug the code that i actually want? Is it something to do with the “call stack”?
Help would be greatly appreciated.
thanks