debugger: switch to using dispatch.