A when breakpoint command accepts other dbx commands like list, allowing you to write your own version of trace.
(dbx) when at 123 { list $lineno;} |
when operates with an implied cont command. In the example above, after listing the source code at the current line, the program continues executing.