· 01:40
The article discusses strategies for avoiding stepping into uninteresting functions while debugging in different environments like GDB, LLDB, Visual Studio, and Fuchsia's zxdb. It highlights the issue where stepping into a function call may unnecessarily lead to nested functions, particularly in standard libraries like C++. The author addresses how GDB allows skipping functions using the skip
command and discusses settings in LLDB to skip library functions by default. Additionally, it mentions Visual Studio's "Just My Code" feature for avoiding framework code during debugging. Alternative approaches in different debugging environments are also outlined, focusing on user productivity by minimizing distractions from complex nested calls.
Key Points:
skip
command to avoid stepping into specific functions or library calls.target.process.thread.step-avoid-regexp
) to skip functions starting with std::
.Listen to jawbreaker.io using one of many popular podcasting apps or directories.