PIC18F2550 runs and then stops
Usually setting breakpoints is the best way to go at it, but this seems like an initialization/setup problem. 

Try disabling the watchdog

   WDTCON  = 0;


Did you setup your oscillator? How about clear most registers? (TRISx, INTCON, TxCON, UCON, etc..)