BeamTrail interview question

How do you debug front end code when x bug is happening?