How to show some debugging information when we run the game ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skyfrit
:warning: Old Version Published before Godot 3 was released.
  1. show some information like FPS
  2. show CollisionShape

:bust_in_silhouette: Reply From: GlaDOSik
  1. use function get_monitor(int monitor) from class Performance. You have to make your own GUI.
  2. Use option Visible Collision Shapes (icon Debug options in the top icon panel)

Thanks for the answers.

Skyfrit | 2016-08-08 13:23

(I add here some explanations, since I needed that myself someone else might need too)

So if you call Performance.get_monitor(i) you can get the i’th performance indicator as enumarated here.

And the icon you are searching for is at the top, in the row of Play, Stop buttons:

debug options icon

hansolo | 2017-09-11 09:09

In Godot 3/4 note that it’s in the textual application top menu (not an icon): Debug → Visible Collision Shapes

Thanks to How to toglle on/off visibile collision shapes in godot 3? - Archive - Godot Forum

Hyper Sonic | 2023-05-10 13:54