Is this possible to see your whole code?

Probably DEBUG won't work, ICD assume you use the internal USART

Do the sample test on the following Bruce's tutorial
http://www.rentron.com/PicBasic/MCS_X3.htm

Hardware must match as well.