(gdb) run # Start the server(gdb) break function_name # Set breakpoints(gdb) continue # Resume execution(gdb) bt # Show backtrace on crash
一般的なGDBコマンド:
# Break on specific SQL command execution(gdb) break mysql_execute_command# Break on extension loading(gdb) break Sql_cmd_install_extension::execute# Print variable values(gdb) print variable_name# Step through code(gdb) step # Step into functions(gdb) next # Step over functions
(lldb) run # Start the server(lldb) breakpoint set -n function_name # Set breakpoints(lldb) continue # Resume execution(lldb) bt # Show backtrace on crash
一般的なlldbコマンド:
# Break on specific SQL command execution(lldb) breakpoint set -n mysql_execute_command# Break on extension loading(lldb) breakpoint set -n Sql_cmd_install_extension::execute# Print variable values(lldb) print variable_name# Step through code(lldb) step # Step into functions(lldb) next # Step over functions