Position and vector values no longer displayed when debugging


Since a pretty recent update (I suppose… don’t know which one exactly), I can’t display the position in this format when directly using the position/vector:

[X ; Y ; Z] (or something - I don’t remember exactly)
(via debugdraw or just the print function)

Now it’s replaced by an empty text:

I realized that very recently when debugging something. I know I can display it by using .x .y etc. but I found it more convenient like it was before.

1/ Is it a known change or an unfortunate side effect?

2/ Is it possible to go back to a previous version of Defold?

Oh dear. This is 100% caused by this recent change: https://github.com/defold/defold/pull/6092

print("foo", vmath.vector3(10,10,10)) -- foo	vmath.vector3(10, 10, 10)
print("foo" .. vmath.vector3(10,10,10)) -- fo

There’s something wrong in the code for concatenating a string with a Defold userdata. We’ll have to fix that for the next release. I’m honestly quite surprised that there’s no unittest covering this.

Sure, previous versions can be found here: https://github.com/defold/defold/releases

1 Like


print("foo" .. tostring(vmath.vector3(10,10,10))) -- foovmath.vector3(10, 10, 10)

I’ve reopened the ticket: https://github.com/defold/defold/issues/3810

Ok thanks!

I think I’ll wait for the issue to be fixed then