... if( $DEBUG ) { debug_main() } else{ main(); } ## The rest of the code #### ... ### debug_main() ### exit; main() # the rest of the code ...