你有没有试过gdb本身?您可以在'(gdb)'提示符下键入'help'来获取命令类别列表,'help'来获取给定类别中的命令列表,以及'help'来获取特定命令的帮助.例如:
(gdb) help data
Examining data.
List of commands:
append -- Append target code/data to a local file
call -- Call a function in the program
delete display -- Cancel some expressions to be displayed when program stops
delete mem -- Delete memory region
disable display -- Disable some expressions to be displayed when program stops
disable mem -- Disable memory region
disassemble -- Disassemble a specified section of memory
display -- Print value of expression EXP each time the program stops
dump -- Dump target code/data to a local file
enable display -- Enable some expressions to be displayed when program stops
enable mem -- Enable memory region
inspect -- Same as "print" command
invoke-block -- Invoke the function associated with the block passed in as the first
mem -- Define attributes for memory region
output -- Like "print" but don't put in value history and don't print newline
print -- Print value of expression EXP
print-object -- Ask an Objective-C object to print itself
printf -- Printf "printf format string"
ptype -- Print definition of type TYPE
restore -- Restore the contents of FILE to target memory
set -- Evaluate expression EXP and assign result to variable VAR
set variable -- Evaluate expression EXP and assign result to variable VAR
undisplay -- Cancel some expressions to be displayed when program stops
whatis -- Print data type of expression EXP
x -- Examine memory: x/FMT ADDRESS
Type "help" followed by command name for full documentation.
Command name abbreviations are allowed if unambiguous.
Run Code Online (Sandbox Code Playgroud)
如果您从未调试过程序,那对您没什么帮助,但如果您知道如何处理调试器,那么您可能只需要它.
| 归档时间: |
|
| 查看次数: |
5304 次 |
| 最近记录: |