473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Skip stl code when debugging

Hi

Is there a way to prevent the debugger from stepping into the stl code when
I am debugging my code?

Thanks Torben
Jan 5 '07 #1
4 1825
Is there a way to prevent the debugger from stepping into the stl code
when I am debugging my code?
Yes. select 'step over' instead of 'step into' when debugging.
I use the VC6 keybindings. For me stepping over is F10, Stepping into is F11
That way you will not go down into STL code.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #2
If I remember correctly there was an option to automatically step over
specific functions. I don't remember where....

QbProg

Jan 5 '07 #3
Bruno van Dooren [MVP VC++] wrote:
Yes. select 'step over' instead of 'step into' when debugging.
I use the VC6 keybindings. For me stepping over is F10, Stepping into is F11
That way you will not go down into STL code.
Sometimes it is desirable to step into your function, but not into the
STL. For example:

void CallToDebug(std::string s)
// Note that I'm intentionally passing the string by value here,
// in order to force the debugger to step into STL code, just to
// demonstrate the problem
{
}

void Testing()
{
std::string s;

/* breakpoint: -----*/ CallToDebug(s);
}

In this case, I don't care about stepping into std::basic_string's copy
constructor, I'd rather skip it and go directly to CallToDebug (I'm not
interested in debugging the STL). Visual Studio might have this feature,
I can't tell for sure.

However, if you accidentally step into an STL function, you can always
hit Shift+F11 (Debug | Step Out) to leave quickly, followed by another
F11 to step into the function that you really wanted to debug. That's
what I do in those rare cases when an F11 leads me right into an STL
header file.

Tom
Jan 5 '07 #4
Is there a way to prevent the debugger from stepping into the stl code when
I am debugging my code?
There are two options:

1) NoStepInto feature can be used to disable stepping into some predefined set of functions:
http://blogs.msdn.com/andypennell/ar.../06/69004.aspx

2) R-Click + "Step Into Specific" menu allows to choose what function to step into
when the code is about to call a function, as in the case described by Tamas.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Jan 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: TK | last post by:
Hello, skip-new is explained as follows in the manual: "Don't use new, possibly wrong routines." (4.1.1 mysqld Command-line Options). Is there a list of the routines that will be disabled when...
59
by: AK | last post by:
I tried to google "skip scan DB2" but came up with nothing. Does DB2 have the feature under a different name?
1
by: samotek | last post by:
Can i avoid the appearance of the Run time error 2105? I have a function that performs well,but at the end the Run time error 2105 appears :" You cant go to the specified record" However...
24
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
3
by: Paul | last post by:
I am running VB.NET 2005. I have a multi-project solution. One project contains all my base classes and user-controls. My other project is my application that uses the base classes and UCs. I...
2
by: magix | last post by:
I have an drop down list let say: <SELECT name="id" id="id" OnClick="Skip()"> <option value="0"></option> <option value="1">Item 1</option> <option value="2">Item 2</option> <option...
10
by: jambalapamba | last post by:
I am trying to skip element in xml document where style attribute is VISIBILITY: hidden or DISPLAY: none. In the following example i want to skip the last two elements but when i...
5
by: hirsh.dan | last post by:
Hello to all, i have the following functions: string File::readLine(){ char ch; string str; ch = read(); while(ch != LF && ch != CR && ch != -1){ str.append(1,ch); ch = read(); }
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.