Software serial routine

Hi,

I thought the hardware serial is used when connected via the usb to the pc and I use it to monitor and debug.

Can I use the hardware serial and also use the com port created via the ide at the same time.

My code is a mess as I have been trying several combinations so it does not look to good

Albert