Script Debugger can display your script with line numbers in the gutter. To toggle the visibility of line numbers:
Choose View > Show Line Numbers.
Or, choose Show Line Numbers from the contextual menu.
If the menu item is checked, line numbers are showing.
The navigation bar also shows line numbers, and you can jump to a line by its number.