How to print NMEA data to serial monitor only

Ryanlb96:
Solution found:

void loop()
{
while(!(ss.available())){}
Serial.write(ss.read());
}

ss is the SoftwareSerial.

You can do that on an ESP8266 device without the watchdog timer forcing a restart ?