Better debugging for errors
Suppose you have some code
void foo() throws Error {}
void foo1() throws Error {}
void foo2() throws Error {}
...
try {
<aLotOfCode>
foo();
foo1();
foo2();
} catch (Error e) {
}
And then you get an error, but you don't know where exactly. It would be nice, if there would be e.g. in the debug mode the generated C code would look like this:
GError *error = NULL;
foo(&error);
if (error != NULL) {
G_BREAKPOINT()
// Maybe print message, what returned an error and the error message
// Maybe even abort
}
Edited by JCWasmx86