Debugging with print is like washing dishes with your fingers: unacknowledged, ubiquitous, very effective.
-
-
Squeak buffers output. I wrote an unbuffered Transcript for Cuis Smalltalk because of what you say. It was mostly ignored.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
used to write Symbian C++ apps. Had to printf to a file and Bluetooth back to PC. Impossible to do anything complex.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
C printf is still buffered. Main cause of grief among beginners debugging a segfault.
-
that's why you fprintf to stderr.
- Show replies
New conversation -
-
-
no flush() function? I remember turbo pascal having quite a good debugger, you were doing pascal even before turbo pascal?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Dumping printf over a UDP socket also works well, in case you are debugging fullscreen programs (like video players).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Don't forget to say $|++ in Perl.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
when in doubt, cout<<
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.