-Xlinenum

This option keeps the line number information in any loaded classfiles, so a stack backtrace will show line numbers rather than bytecode offsets. When -Xdebug or -Xprofile options are used they automatically include the line number tables.

When an exception is thrown and the stack trace is printed on the console, the EVM shows both file names and line numbers.