Cognex Interview Question

How do you debug embedded system and what tools to you?