The Godot Community Forums are back up and running! Please read the the announcement post for important information on what happened. Thanks!

how to find where a print statement is coming from

jackhenjackhen Posts: 11Member

I have quite a few objects in my project and something is printing out "null" to the console a bunch of times. I have absolutely no idea what script is doing this. is there an easy way to figure out where this print statement is?

Comments

  • If it's from your own code you could use print_debug instead of print which will give you the script, line number and function name. But I'm not sure if that's the case here or the print comes from someplace you have little control over.

  • jackhenjackhen Posts: 11Member

    @anatol said:
    If it's from your own code you could use print_debug instead of print which will give you the script, line number and function name. But I'm not sure if that's the case here or the print comes from someplace you have little control over.

    I will definitely be using that in the future. I put the print statement in, I just forgot which script its in. Is there any way to search all of my code for phrases?

  • UnknownUserUnknownUser Posts: 0
    edited September 18

    Is there any way to search all of my code for phrases?

    Sure, in the code editor menu Search > Find in Files … (Shift + Command + F) will search in your entire project or in a part thereof.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file