Now is the time to gently remind people that
when making a post, please mention the version of CodeWarrrior that you're using (not the IDE version number, the product version number) and the target MCU in the subject line.
Now with that out of the way, let's try to give you an answer. Most CW tools support console I/O which you can use to route input and output over the USB cable to the program. Check the manuals on console I/O before trying this. Also, note that if you can do it, it's going to add a lot of overhead. If your ultimate program design will be using the serial port for commuications you might be better off by using it from the beginning. There are a number of example programs with source code in the CodeWarrior directory. These can be found under the (CodeWarrior Examples) directory. Try building these examples first to get familiar with how CodeWarrior works and its limitations.
---Tom