debugging in robot c competition template

Is there a way to debug autonomous code in the vex competition template?

In RobotC 3.x There is, but I haven’t seen it in 4.xx

4.x is the same as 3.x. ROBOTC does not care if you are using a competition template or what type of code you are running, debugging works the same.

Something I would like to add, I meant that there was a built in competition switch in 3.xx I don’t think there is in 4.xx

The competition control dialog is still there, however, it really is not that good and you are far better of using a real competition switch (either the vex one @ $20 or homemade).