Debugging with GDB (5) logging
啥东西有logging就是牛X的,Django也有logging。
set logging on- Enable logging. 默认打印到当前目录的gdb.txt文件
set logging off- Disable logging.
set logging filefile- Change the name of the current logfile. The default logfile isgdb.txt.
set logging overwrite [on|off]- By default, gdb will append to the logfile. Set
overwriteif you wantset logging onto overwrite the logfile instead. set logging redirect [on|off]- By default, gdb output will go to both the terminal and the logfile. Set
redirectif you want output to go only to the log file. show logging- Show the current values of the logging settings.
浙公网安备 33010602011771号