The step event occurs when the first instruction of a source line is executed. For example, you can get simple tracing with:
when step { echo $lineno: $line; }
When enabling a step event you instruct dbx to single-step automatically next time cont is used. The step command can be implemented as follows:
alias step="when step -temp { whereami; stop; }; cont"