+3 votes

Somewhat related to my last question.
Is there a way, kinda like try and catch in most programming languages, to get the error message in case of crash instead of making the debugger stopping the game?

As an exemple an user wants to run 2+a but the debugger yields on with the error: "Parser Error: Identifier not found: a". I would like to be able to get the error as a string (not using printerr or so to print it to command line, I want it to be able to show in-game) and to let the game continue its normal execution.

asked Jul 23, 2016 in Engine by GovanifY (20 points)

1 Answer

0 votes

According to this issue, there's apparently no way to catch exceptions with Godot. And that won't change anytime soon. :/

answered Sep 30, 2016 by Lertsenem (32 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.