Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Is there an option in Visual Studio 2010 that would allow me not stepping into third-party library code (STL, Boost, etc.). I would like only stepping into my code.

share|improve this question

closed as off topic by gnat, MichaelT, Bart van Ingen Schenau, GlenH7, Martijn Pieters May 19 at 14:17

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

2 Answers

You did not mention whether or not you are coding in a managed environment. For managed environment there is an option named "just my code" that should do the trick.

More information can be found on the MSDN.

share|improve this answer
Uwe yes I forgot to mention, it is native. Can you access boost from managed? I suppose you can. – smallB Jun 29 '11 at 11:53

I think you might have accidentally hit the F11 key while debugging which allows stepping into the code (of other library packages, unintentionally). Red Gate Software's .NET Reflector also allows stepping into other packages 'they call it a feature of the product'. Try hitting the F10 key for stepping out when you meet a line / code that was adopted from an external library you don't want to get into.

Follow Below Route:

//Some code above

Function my_func(params){ //Hit F11 to step into.
    var x = std::fnc(); //Hit F10 here to step over to the next line, leaving this statement.

    //More code to run
}

//Some code below
share|improve this answer
Nope, I have my_fnc(std::fnc()), this is pseudo code. I do want to step into my_fnc but I do not want to step into std::fnc() – smallB Jun 29 '11 at 10:26
@smallB look at updated answer – Deeptechtons Jun 29 '11 at 10:46
@Deep... the whole point is to be able to step only into my code. Yes your suggestion would work but it needs restructirization of a code in order to debug. Actually params is the variable which needed to be first get outside of this fnc and then pass to it. But it is not what I've asked for. I'm asking if there is a way to step just into mine code. – smallB Jun 29 '11 at 11:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.