Line numbers refer to a sequence of consecutive integers that are assigned to each line in source code, typically for debugging purposes.