@omz, the debugging window you bring up is sort of ok. However there are a quite a few issues , I have refrained from commenting about it because of being in beta. The stack view often points to lines a few after where the actual error really is in the code. It still affects me a little, but not so much as I learn more about Python . I can spot the problem mostly. But it was in the beginning when I was learning, I would have been so lost. Especially for new Python people, it needs to be 100%.
The other thing is in the 'variable' list you have local and global. Global is always a huge list.
On this method, I get an error, expected number.
w, h = ui.measure_string(self.text,
max_width=self.max_width,
font=(self.font_name, font_size),
alignment=self.alignment,
line_break_mode=self.line_break_mode)
But the pop up trace is not much help to find the problem. I am sure it's there, but not easy to find amongst the globals.
I get this -

But would be great if you could have something like a global context list. Meaning a list of globals actually referenced inside the method/func.
I have no idea about the complexity of this, but earlier versions of py2 beta seemed to help you a lot more, at least for me it did