Given a scenario where an embedded system fails to perform as expected, how would you troubleshoot the issue?