gdb

gdb 单步调试

Posted by VK on November 12, 2019

gdb 单步调试

/> b file:the line of function you want to debug(b set breakpoint)

/> r (run the function)

/> s(step into current line’s sub function and don’t step out )

/> n (continute run next line)

/> c(continute to next breakpoint)

/>b the line of current file you want to set break point