# How to use Debug Commands

**URL:** <https://forum.code.org/t/how-to-use-debug-commands/36043>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [March 18, 2022, 3:02pm UTC](https://forum.code.org/t/how-to-use-debug-commands/36043 "2022-03-18T15:02:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby.goodman](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bobby.goodman](https://forum.code.org/u/bobby.goodman)\
**Post date:** [March 18, 2022, 3:02pm UTC](https://forum.code.org/t/how-to-use-debug-commands/36043/1 "2022-03-18T15:02:17Z")

</div>

Can any one explain how to use the Debug Commands in the Debug Console? Is there a guide or tutorial somewhere? What does Step In, Step Over, Step Out do exactly?

![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/8/84401b6e9644a59c8f9152a10796c5971371b248.png)

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [March 19, 2022, 11:28pm UTC](https://forum.code.org/t/how-to-use-debug-commands/36043/2 "2022-03-19T23:28:40Z")

</div>

@bobby.goodman,

I think the following description is accurate: Step over – An action to take in the debugger that will step over a given line . If the line contains a function the function will be executed and the result returned without debugging each line. Step into – An action to take in the debugger. (from [fourkitchens](https://www.fourkitchens.com/blog/article/step-step-through-debugging/#:~:text=Step%20over%20%E2%80%93%20An%20action%20to,to%20take%20in%20the%20debugger.))

So, you really need a function and function call to see the difference in step-in and step-over. On [this quick sample](https://studio.code.org/projects/gamelab/Fwg8YUtonzK1LYoM5xqUSTDMTiazrgKuhKZDtEe38ew), if I quickly click break and then step-in, it goes through the function line by line. If I do the same but click step-over, it runs the function but it doesn’t go through each line but I do stay in the debugger.

“Step out – An action to take in the debugger that returns to the line where the current function was called.”

My example does not have much code so it is hard to see the big differences with step-out and step-over.

I hope that helps a bit. Perhaps others can give further insight.

~Michelle
