fix debug stepping problems when debugger is invoked from R RPC calls