# l command (FlashBASIC Debugger)

The l command lists the current source
line, or a specified range of lines, from the corresponding source
program being executed. The l* form displays the
entire program. The l command, followed by pressing
ENTER, displays the current program source line.

## Syntax

```
{flash.routine.name:}?l{starting.line-ending.line}
{flash.routine.name:}?l{line.number}
{flash.routine.name:}?l{*}
{flash.routine.name:}?l
```

## Example(s)

Lists lines 10 through 17.

```
*l10-17
```
Lists line 5.

```
*l5
```
Lists the whole program.

```
*l*
```
Note: *flash.routine.name* can only be
specified if the program has been optimized through the FlashBASIC
compiler. When *flash.routine.name* is specified,
the corresponding debugger command is executed against the specified
routine. The colon separating *flash.routine.name* and the debugger command is required.

## See also

- [BASIC/FlashBASIC Debugger](https://d3codex.com/flashbasicdebugger/basic-flashbasic-debugger/)
- [c command (FlashBASIC Debugger)](https://d3codex.com/flashbasicdebugger/c-command-flashbasic-debugger/)
- [Error condition](https://d3codex.com/pickbasic-flashbasic/error-condition/)
- [Nonfatal error condition](https://d3codex.com/pickbasic-flashbasic/nonfatal-error-condition/)

---
Source: https://d3codex.com/flashbasicdebugger/l-command-flashbasic-debugger/ - part of the D3Codex reference.
