How to get serial port data through programming port?

I am using Arduino Due. I am using Serial.print() to send data out of the UART. Unfortunately, I cannot see data at the programming port. There is no problem when I use the same code code for Atmega2560.

Can I use Serial.print() to send data to the programming port?

Hi lightaiyee

I output data through the programming port by using Serial.println() or SerialUSB.println() for the native USB port.

Hope that helps.