Does Defold support breakpoints in a coroutine?

I’m trying to Debug a monarch screen script that I wrote. When the debugger pauses, it shows the callstack at the correct function but all I can do is resume. The breakpoint I set doesn’t light up however I can evaluate the lua and I see that variables I set prior to the breakpoint have been updated. However, I am unable to step through this part of the logic in order to see how the logic changes these values since the only buttons that work are play and stop at this point.

I know there’s some problems debugging inside coroutines. We use mobdebug (https://github.com/pkulchenko/MobDebug) for the debugger and connection from editor to running Lua instance (https://github.com/defold/defold/tree/dev/editor/bundle-resources/_defold/debugger).

We use an old version of mobdebug and it could very well be that there’s fixes in newer versions of mobdebug. This would be a perfect experiment for someone to try out now that the code is available! :wink:

3 Likes

Tried to reply to this thread but it posted it in another: Help building Defold?