Page 1 of 1

Debugging over the internet

Posted: Mon Jun 06, 2011 6:18 am
by v8dave
Hi all,

Is it possible to debug a netburner over the internet?

If this can be done, what ports do we need redirected? I have tried 2159 but it doesn't seem to work.

I have a unit in the field that I need to do some basic debugging to see what is happening on the serial ports into it.

Cheers
Dave...

Re: Debugging over the internet

Posted: Mon Jun 06, 2011 8:35 am
by Ridgeglider
V8:

I often use some of the code in the C:\nburn\examples\serial\DualTcpToSerial and Tcp2Serial examples to alow redirection of stdio back and forth from serial IO to telnet. Basicaly if there's a telnet connection present, that's where stdio goes; when it closes or goes inactive, stdio goes back to serial COMx. You can also set it up to close an existing connectiona and to accept and switch to a new telnet connection if one appears. Comes in pretty handy occasionally.

There is also the UDP syslog stuff (described in 10.17 of the NB Runtime Library Reference), although neither would allow you to debug something that's already in the field unless it's coded that way.