Initialize debugging in the correct place