When I run CGDB I see all of the code/backtraces/stdout stuff just fine. When I exit, it all gets cleared (just like when I exit vim, for instance). As a result I lose all the output.
I realize it would be a bit strange since it sort has a pager built in already. I just haven't found any reference in the info cgdb
docs that suggests there's any magic to keep logs around.
GDB命令set logging on
, set logging file
和set logging off
可能对您有用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.