Debugger Improvements

#1

We released a series of improvements for Lua debugger:

  • Better handling and displaying of values with circular references. Previously such values could hang editor or engine on breakpoints. Now we make sure to handle it gracefully, and allow to infinitely drill down to such values in Variables panel:
  • Displaying errors of evaluation results: now if your evaluated code results in error, it’s printed instead of being silently swallowed:
    Screenshot%20from%202019-03-18%2013-18-37
  • Pretty-printing evaluation results: now your tables are pretty-printed and can be read more easily:

If you avoided debugger previously because of its unreliability, I’d suggest you to give it a try now, and tell as what you think!

18 Likes

Defold 1.2.150 has been released
#2

It feels mature enough to use it now. One thing I’d add is some history for the “evaluate lua” box. I’m used to the Chrome Dev Tools where I can type an expression, press enter to view it, then press up arrow to continue editing it.

8 Likes

#3

True, I have the same habit, and it doesn’t work there. We should add that.

2 Likes

#4

+1 Really missing this feature.

2 Likes

#5

Great improvements :+1:

3 Likes

#6

Just pushed an update that improves performance on evaluating large data structures (such as _G) — no more editor freezes!

16 Likes