How do you approach debugging a system that intermittently hangs under high load in an embedded environment?