# Chrome developer tools - debugging problem

**URL:** <https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757>\
**Category:** General\
**Created:** [October 10, 2019, 12:39pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757 "2019-10-10T12:39:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![silvercut](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@silvercut](https://forum.freecodecamp.org/u/silvercut)\
**Post date:** [October 10, 2019, 12:39pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/1 "2019-10-10T12:39:41Z")

</div>

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)

```auto
<html>
    <head>
        
    </head>
    <body>

        <script src="app.js"></script>
    </body>
</html>

```

```auto
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:

```auto
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:

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/c/c/cc17ad4e6e6c60ea36264a548b0e4ff9ec925024.png)

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

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [October 10, 2019, 12:54pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/2 "2019-10-10T12:54:17Z")

</div>

Try stepping out? It’s the button that looks like an arrow pointing upward from a dot on the upper right

---

<div class="post-metadata">

**Author:** ![silvercut](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@silvercut](https://forum.freecodecamp.org/u/silvercut)\
**Post date:** [October 10, 2019, 12:57pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/3 "2019-10-10T12:57:17Z")

</div>

![image](https://global.discourse-cdn.com/freecodecamp/original/3X/8/d/8d36207456c6ba69cf100ef95e853848edf2af21.png)

when i step out, it creates this (VM108) and then when i step out again, it continues debugging the code that i dont want to debug.

even if i delete the others, and keep only the snippet, it will continue to debug something else, and not the snippet.

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [October 10, 2019, 1:12pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/4 "2019-10-10T13:12:02Z")

</div>

I’m not really familiar with Chrome’s debugger, but the VM code seems to pop up when you pause execution, which you can do after all the breakpoints in your script have been encountered. I think at this point the only thing you can do is reload the page.

---

<div class="post-metadata">

**Author:** ![silvercut](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@silvercut](https://forum.freecodecamp.org/u/silvercut)\
**Post date:** [October 10, 2019, 1:24pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/5 "2019-10-10T13:24:16Z")

</div>

maybe its something to do with brackets being on live server?

essentially, i want to be able to always open chrome smoothly and debug something using snippets. But, i can never seem to get to the actual snippet piece of code to debug (it will execute something else)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:03pm UTC](https://forum.freecodecamp.org/t/chrome-developer-tools-debugging-problem/320757/6 "2021-01-16T17:03:25Z")

</div>

Closed on January 16, 2021, 5:03pm UTC


