473,804 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1860
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************* *********@hotma il.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_stri ng'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
1527
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 using this command-line option? The manual also states the following: "concurrent_inserts If ON (the default), MySQL will allow you to use INSERT on MyISAM tables at the same time as you run SELECT queries on them. You can turn this option
59
6882
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
4090
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 when i click "End" on the window, i go to the desired place and my function will be perfect if i can
24
5781
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 macros */ #ifndef PUBLIC #define PUBLIC
171
7818
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) like it because you can split the code from the design. That is logical. But if you are the only one working on the code, it seem a little overkill. I use Dreamweaver to do my design and find it a bit of a hassle to have multiple files open...
3
2979
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 want to debug parts of the base and all of my application code. But there are parts of the base code that I just want to skip and not see (EVER) when debugging. Is there some feature like #DEBUG that does this?
2
3237
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 value="3">Item 3</option> <option value="4">Item 4</option>
10
1673
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 skip the element with id=”Div1” and next reader.Read() reads “ includeme” but i expected it to read element <a id ="Div2" style="visibility:hidden "> and skip it instead its writing “ includeme” to the console ...
5
1773
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
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.