• Toxe replied to this.
  • It's a bit complicated. I haven't tried it, and I can't find anyone who has, but it seems possible.
    Look into EditorDebuggerPlugin and maybe EngineDebugger
    If it works the same as the tab in the editor, which I think it does, then the message to capture would be "error".
    Get the engine source code and look at script_editor_debugger.cpp ln:525 to see what the engine is doing when it receives an error.
    Note that there's no way this will possibly function in release builds and will likely be very hard to get working even in debug exports.

    If you still wanna try and do it then good luck and I hope it isn't a wild goose chase o7 I would understand if not though...

    leonhardt Not sure what you are asking. What are you trying to achieve?

    Sorry, I didn't explain the question clearly. I want to get the error message text shows in the debugger panel, and set the error message text to a Label in game.

    It's a bit complicated. I haven't tried it, and I can't find anyone who has, but it seems possible.
    Look into EditorDebuggerPlugin and maybe EngineDebugger
    If it works the same as the tab in the editor, which I think it does, then the message to capture would be "error".
    Get the engine source code and look at script_editor_debugger.cpp ln:525 to see what the engine is doing when it receives an error.
    Note that there's no way this will possibly function in release builds and will likely be very hard to get working even in debug exports.

    If you still wanna try and do it then good luck and I hope it isn't a wild goose chase o7 I would understand if not though...

      award It seems that both the EditorDebuggerPlugin and EngineDebugger can only connect with added debug plugins use EditorPlugin.add_debugger_plugin(). And, there is no way to retrieve the message from the Error tab in the debugger panel using gdscripts.