Remove (DEBUG) from the title on godot 4.4 debug builds

Godot Version

4.4

Question

for reasons more or less beyond my control, I cannot export the game in release mode as a certain plugin causes segfaults occasionally and without any kind of pattern, so I need the game to be exported in debug mode

however, in debug mode there is seemingly no way to change the title to not show that (DEBUG) tag. am I missing it somehow, or is there no way other than recompiling myself

Have you tried setting the window title through code?

func _ready() -> void:
    get_viewport().title = "My Game"

yes. getting the title does not show (DEBUG) and changing the title does not remove it

1 Like

I tried

GetViewport().GetWindow().Title = "My Game";

Window title becomes “My Game (DEBUG)”.

Try with DisplayServer.window_set_title() You can get the window_id with Window.get_window_id() and you may need to await a few frames for it to work.

extends Node


func _ready() -> void:
	await RenderingServer.frame_post_draw
	DisplayServer.window_set_title("potato", get_window().get_window_id())
1 Like

I believe there is no way around it (without changing the code and compiling it yourself).

1 Like

thank you

after checking again, this does indeed remove the (DEBUG) unlike the window setter. thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.