jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

redirect serial monitor window input/output #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be useful, especially for debugging, to be able to redirect serial 
monitor window input and 
output to an external file.

Original issue reported on code.google.com by ahdavids...@gmail.com on 29 Aug 2009 at 2:20

GoogleCodeExporter commented 9 years ago
What about in additional to the ability to log to a file, have the serial 
monitor watch for a "magic token" printed on the serial to control this 
behavior? 

here would be some possible behaviors with the first being default.

TOKENA = set the serial output to just print
TOKENB = set the serial output to print and log
TOKENC = set the serial output to only log 

The log file would be kept in the same dir as the sketch and rotate with each 
opening of the serial monitor window like a unix messages file. Add a user 
preference to control how many old log files are kept before being discarded.

The reason for TOKENC is because sometimes the volume at which data is output 
is too much for slower computers to display.

Is this a good idea or have I had too much coffee?

Original comment by standard...@gmail.com on 12 Sep 2010 at 7:32

GoogleCodeExporter commented 9 years ago
You can always copy the contents of the serial monitor window if you need to 
save the output.  Or use another terminal program to redirect it.  I'm not sure 
this really makes sense in the IDE.

Original comment by dmel...@gmail.com on 22 Nov 2010 at 5:39