3 ms·
The latter freezes your program for non-trivial amounts of time which can be problematic in some cases.
by kevin_thibedeau 8y ago
The latter freezes your program for non-trivial amounts of time which can be problematic in some cases.
- yorwba 8y agoYes, for example setting a breakpoint in your input method engine while it's relaying your keystrokes to the terminal with the debugger tends to go poorly. On the other hand, gdb supports the "commands" command, which allows you to automatically run a script when a specific breakpoint is run. That way, you can do essentially everything you can do by inserting logging statements directly into the code, but without having to restart the process.
- pjmlp 8y agoWith dynamic trace points and scripting there is no freezing.