Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to step directly into my std::function in debugger?

$
0
0

Is there a way to get the debugger to step directly into my std::function without having to step into all the std library code?

I have code like this:

If I'm sitting on the breakpoint line:  "f()"  and I do "Step Into", it steps into a bunch of std library code and I have to keep doing Step Into many times before eventually stepping into the implementation of my function.

I thought I could use the StepOver registry key and write a NoStepInto line that prevents this by adding a registry key like this

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\NativeDE\StepOver]"10"="std\\:\\:.*=nostepinto"

But instead it just completely steps over the entire call (which I guess is as expected, but not what I want).  What I want is to find a way to step into the std library functions, but keep stepping in automatically until I get to MY function (calleddisplay() in my example.)


There's a lot of junk to go through and I'm getting seriously tired of stepping into all these functions.

std::tr1::_Callable_fun<void (__cdecl*const)(void),0>::_ApplyX<void>()  Line 7 + 0xe bytes
std::tr1::_Impl_no_alloc0<std::tr1::_Callable_fun<void (__cdecl*const)(void),0>,void>::_Do_call()  Line 66
std::tr1::_Function_impl0<void>::operator()()  Line 154 + 0x17 bytes

Keep in mind this is native (unmanaged) C++.  This happens to be VS 2010, but I'd be interested if there's a 2012 solution as well.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>