private static void printArgs ( String [ ] arr ) { Log . info ( "" ) ; Log . info ( "----- printArgs -----" ) ; for ( int i = 0 ; i < arr . length ; i ++ ) { String s = arr [ i ] ; Log . info ( i ) ; if ( s == null ) { Log . info ( "null" ) ; } else { Log . info ( s ) ; } } Log . info ( "----------" ) ; }
Under unusual debugging circumstances it can be helpful to print out the command line arguments in this format .