Library /sys$common/syshlp/DBG$HELP.HLB — DEBUG Built in Symbols, %ACTIVE TASK
(Applies only to tasking programs.) Gives you the currently
active task (the one that was running when the debugger last
took control). See the SET TASK/ACTIVE command.
Example:
DBG> EVALUATE %ACTIVE_TASK
%TASK 2