Accessing error messages

Godot Version

4.2.1.stable.mono

Question

Hello. This is possibly has an obvious answer, but how can I access/capture error messages from the engine?

Specifically, I mean messages that appear Debugger | Errors in the editor console.

Thanks!

just suggestion: title and tag should make it clear it’s for godot csharp

So, I know this isn’t the easiest option, but recently I had to catch some exceptions thrown by the lower level C++ code, and what I did is compile the engine myself and while I’m developing my game, I run the engine with the debugger running in the background. This works for exceptions inside the editor, if you want the same in your game though, I haven’t quite got that working reliably yet. But I would assume it’s the same process.