schorsch312
schorsch312

Reputation: 5714

How to disallow my debugger (totalview) to step into the standard library implementation?

Is it possible to disallow my debugger (totalview) to step into the standard library code on linux? Quite often when debugging C++ code I step into standard library code. I expect that it is correct; I am not interested in debugging it. I am only interested in debugging my own (self-written) code.

For instance when setting a break point at this function:

foo(std::make_shared<int>(6));

where foo is defined as:

void foo(std::shared_ptr<int> x) {
    // do something
}

I do not want to dive into the details of std::make_shared: what I want is to step directly into the function foo. But this seems not to be possible. If the breakpoint at foo(std::make_shared<int>(6)); is reached and I press the 'Step Into' button it first steps into the 'memory' header file (standard library):

You can double click on the function, than place a breakpoint and go to it and remove the breakpoint. This works, but is time consuming and cumbersome.

The very same problem is asked here and here, for visual studio but not for totalview.

Upvotes: 2

Views: 329

Answers (0)

Related Questions