save state for remote debugging