The Arduino IDK has a serial monitor tool built in but I would have had to change the selected serial port back and forth from one port to another to program or view the debugging data. To get around this I just used terminal to display the data.
Below is the Arduino sketch used in the example.
#include <softwareserial.h>
#define rxPin 2
#define txPin 3
int count = 1;
SoftwareSerial PCserial = SoftwareSerial(rxPin, txPin);
void setup() {
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
PCserial.begin(9600);
}
void loop() {
PCserial.println("This is output via software serial.");
PCserial.print("Count: ");
PCserial.println(count);
count++;
delay(1000);
}