News for hackers. Stuff that matters.
Re:Seer: A GUI front end to GDB for Linux by TeMPOraL on Saturday November 16, 2024 @08:20AM (#42156264)
You can trivially add printf-like statements on the fly with debuggers; with GDB, one method I often use is the ability to attach commands to breakpoints, to be executed when the breakpoint is hit.

  break SourceFile.cpp:123
  command
    pp var1
    pp var2
    continue
  end
With that `continue` at the end there, this breakpoint will not pause execution (except to run the commands).

There are no comments on this comment yet.