Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Felipe |
I printed an array and I got this output “[…]”. The array is empty. But I have other empty array and the output was just “” (and that was what I was expecting). Why the console printed “[…]”?
Both arrays had elements and both was empted by removing one by one of its elements.
Maybe the output couldn’t be printed to the console. There are other ways of looking at the array at runtime. Try putting a breakpoint
right after the statement. When the game is run, it will stop at that point, and you can look at the debugger pane for the contents of the array.
Ertain | 2021-09-24 06:55
Thanks for replying, Ertain. I tried to use breakpoint, but it seems that my array is empty (exactly what I expected). I take some screenshots:
The link: godot-forum hosted at ImgBB — ImgBB
I couldn’t attach here.
Felipe | 2021-09-24 17:58