views:

91

answers:

1

When debugging code using boost function and bind in Visual Studio, I would like to be able to have the debugger show information about the actual function pointed to by the boost functor. For instance the name of the function, the signature of the original function (before bind was used on it), or the state of the functor.

At the moment I have to step through the code to find out which function it is, and that requires stepping all the way through the boost code first.

Does anyone know if this has been done or even if it can be done?

Thank you!

Edit I'd also be very happy to find out that someone has developed an answer to this question by now: How to debug code that uses boost w/o losing sanity?

(I mean the problem mentioned in the accepted answer: How to step over the boost code but still step into the code called by the boost::function...)

+1  A: 

There is an initiative in boost to make debug visualizers. There are already debug visualizers for different types (variant, multi_index, shared_ptr and more).

Unfortunately boost::function is not there, but you can write a visualizer yourself as described there (and maybe submit it to boost ;). Alternatively you can make a request to write one for you.

Regards,
Ovanes

ovanes
Thank you very much!
Vickster