3 ms·
Print debugger is the debugger which you carry with yourself to anywhere, any infrastructure, any codebase, any language, any organization. It just works, and
by unity1001 6y ago
Print debugger is the debugger which you carry with yourself to anywhere, any infrastructure, any codebase, any language, any organization.
It just works, and it works everywhere. That's why people use it.
Surely, if your work involves working in a certain stack permanently with a certain set of tools, definitely a dedicated debugger could improve your debugging. But for people who work with a large array of technologies and languages, especially senior developers who have to switch back and forth in between stacks - especially if they occupy a lead or man role in their org - that's not feasible. But print just works.
Additionally print debug is the program telling you how things are without something else interacting with it. Leave aside not having to go through creating breakpoints and then going through them slowly one by one (god).
You just place a print in a suspected location and run the program hands off. It doesnt trigger. Ok. You go to the other half of the potentially affected code. Put the print in there. Ha! it triggers. Then you repeat the process again, closing down on affected bit fast. Its a binary search pattern, and its fast. With debugger you have to create a mini program (thought-out breakpoints) to go through the actual execution of the code from the start.