Enhancements to instrumentation to aid remote debugging