From QB64.org wiki
The _ERRORLINE function returns the source code line number that caused the most recent runtime error.
- e% = _ERRORLINE
- Used in program error troubleshooting.
- Does not require that the program use line numbers as it counts the actual lines of code.
- The code line can be found using the QB64 IDE (Use the shortcut Ctrl+G to go to a specific line) or any other text editor such as Notepad.
Example: Displaying the current program line using a simulated ERROR code.