5 ms·
Any system that is capable of emitting any data, can emit bytes from print debugging. Could be log file, socket, or even pulses along a GPIO pin. If the syste
by Ferret7446 4y ago
Any system that is capable of emitting any data, can emit bytes from print debugging. Could be log file, socket, or even pulses along a GPIO pin.
If the system can't emit any data, well, you're kind of stuck anyway.
- bongobingo1 4y ago> If the system can't emit any data, well, you're kind of stuck anyway. It's also by all recognition, functioning perfectly :)
- scruple 4y agoHaving worked in embedded, debugging through an Oscilloscope is a cherished memory that I sometimes talk to junior colleagues about. Knowing these things are possible can sometimes help people find more novel ways to think about debugging their applications.
- worik 4y agoPulses on a GPIO pin are not print statements. A huge proportion of computing devices have no method of producing any out put, other than to some form of actuator, at all. "print statements" are useless in this class of device. Stretching the definition of "print statement" to recording pulses from a pin is, well, a stretch! Poor young programmers. If the only tool you have is a hemmer, every problem is a thumb.
- msla 4y ago> Pulses on a GPIO pin are not print statements. Yes, they are. How do you think text terminals work?
- worik 4y agoReally? You are being disingenuous. It is a long way from "pulses on GPIO pins" to a print statement.
- msla 4y agoIt's precisely one text terminal or LED scroller away.
- worik 4y ago> It's precisely one text terminal or LED scroller away. This is quite strange. Let us remember the context > Print debugging is a technique that will never go out of style. It works on any system, So you are suggesting that watching the blinking of a GPIO pin (I hope you have an oscilloscope, or some other probe, rather than applying to to your tongue) is the same as "Print debugging"? I contend that in any sensible use of technical English "print debugging" is text output to a console. In that context there are a lot of systems, possibly most computer systems, do not have access to that. It is not unusual for developers to go to elaborate lengths to attach consoles to these systems - not the same as " It works on any system, "
- whartung 4y agoIf you added code to tickle the GPIO specifically to gain insight into the process, whether you leave it in or not, then it’s “print debugging”. Many a microcontroller developer has tickled an indicator LED in their day. If your simply monitoring activity through an external source (whether it’s an oscilloscope or watching traffic through a network analyzer) then that’s basically black box testing.
- TeMPOraL 4y ago> A huge proportion of computing devices have no method of producing any out put, other than to some form of actuator, at all. Actuators work too. It's not unheard of in robotics to debug by adding statements that make some actuator do specific movements that communicate the information you want to surface. Anything you can use to output nonzero amount of bits to the environment can work for print debugging.