# Debug engine bug?

**URL:** <https://forum.defold.com/t/debug-engine-bug/66237>\
**Category:** Questions\
**Created:** [September 6, 2020, 9:56pm UTC](https://forum.defold.com/t/debug-engine-bug/66237 "2020-09-06T21:56:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 6, 2020, 9:56pm UTC](https://forum.defold.com/t/debug-engine-bug/66237/1 "2020-09-06T21:56:40Z")

</div>

I’ve noticed if I catch a breakpoint and resume, the physics of my player continue updating. Once I resume, I appear repositioned through the walls in the direction I was moving prior to pausing. This seems like a serious bug if this is the case. Shouldn’t all physics/update logic be paused during debug?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [September 7, 2020, 4:21am UTC](https://forum.defold.com/t/debug-engine-bug/66237/2 "2020-09-07T04:21:26Z")

</div>

> [@Epitaph64](#):
>
> Shouldn’t all physics/update logic be paused during debug?

Yes. Can you share a small example project where this bug is seen?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [September 9, 2020, 7:27am UTC](https://forum.defold.com/t/debug-engine-bug/66237/3 "2020-09-09T07:27:12Z")

</div>

I would just assume it get a huge delta time after resuming, thus moving everything a very far distance at once.

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 9, 2020, 7:28am UTC](https://forum.defold.com/t/debug-engine-bug/66237/4 "2020-09-09T07:28:00Z")

</div>

Hmm, shouldn’t pausing the debugger also subtract the paused time from the resumed dt? That would make the logic more consistent and easier to debug.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [September 9, 2020, 7:30am UTC](https://forum.defold.com/t/debug-engine-bug/66237/5 "2020-09-09T07:30:04Z")

</div>

Well, I don’t think it’s optimal as it currently stand no.  
I don’t know how easy it is to fix though, but we’ll add a ticket to investigate it at some point.

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 9, 2020, 8:15am UTC](https://forum.defold.com/t/debug-engine-bug/66237/6 "2020-09-09T08:15:53Z")

</div>

Cool thanks! This should make the debugging process much smoother.

---

<div class="post-metadata">

**Author:** ![aglitchman](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/aglitchman/32/19432_2.png) [@aglitchman](https://forum.defold.com/u/aglitchman)\
**Post date:** [September 18, 2020, 12:53pm UTC](https://forum.defold.com/t/debug-engine-bug/66237/7 "2020-09-18T12:53:18Z")

</div>

@Epitaph64 Could you please say what values of the Frame Cap and Vsync `game.project` options do you use?

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/6/e/6edd1921a61d26f2b01990cb0d9f2db84f8a6a43.png)

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 18, 2020, 3:46pm UTC](https://forum.defold.com/t/debug-engine-bug/66237/8 "2020-09-18T15:46:02Z")

</div>

Mine are the same as the screenshot right now. I also use 60 fps and vsync when I bundle for Android (if I remember to set it when I test)
