Debug mode without try {} catch(...) in otbApplicationLauncherCommandLine
In otbApplicationCommandLineLauncher
, there is a big try{} catch(...)
block that will catch any exception thrown during application execution and log it as an error. While this behaviour is desired from the end user stand point (the code should never crash), it prevents from efficient debugging: since any exception is caught, gdb can not get back to the exact line where the exception was thrown. The developer is left with no clue but "something somewhere throws that exception".
I would therefore like to have a -debug
option in otbApplicationCommandLineLauncher
that disables the try{} catch(...)
block, to be used for developers.