Is there a way in CLion 2017 to step into project source files only whilst debugging a program?
For example in the code segment below,
function1 (boost::doSomething())
I have a function from an external library (eg boost
) which I don't want the debugger to go into while I step through the program.
Is there a setting that forces CLion to skip stepping into any code from an external library?
If CLion is using gdb for it's debugger then you can create the file ~/.gdbinit
and add the following to ignore all functions in boost::
namespace.
skip -rfu "boost::.*"
As another example, you can also add the following line to skip all the header files in include/bits (like unique_pointer.h).
skip -gfile include/bits/*.h
More info on skip
options at Debugging with GDB: Skipping Over Functions and Files and in this useful answer https://stackoverflow.com/a/42985979/255961 .
See this link for how to do something similar if CLion is using lldb - How to not step into shared_ptr in xcode .
如以上注释中所述,该功能尚未实现。
Try:
auto result = boost::doSomething();
function1 (result);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.