I am using WP-CLI shell to quickly debug some code, but every time I run into a fatal
exception (e.g. undefined constants/functions) the shell exits and I lose my shell session. Is there a way to prevent this?
wp> new DoesntExist();
Fatal error: Class 'DoesntExist' not found in phar:///usr/local/bin/wp/php/WP_CLI/REPL.php(37) : eval()'d code on line 1
Shell exits..