Debugging only my code

Hi there,

I'm new to Microsoft sw development tools (I use Borland ones since my first hello.c in 1992, and some TopSpeed e Watcom for short periods...) and I didn't figured out how can I trace/debug only the code under Source Files sector of a Console app project without entering on CRT or STL code.

May anybody help me on this matter?

TIA,

WB::

[383 byte] By [W.Barbosa] at [2007-12-25]
# 1

You can use F10 to step over what ever calls you don't want to trace or debug. This can be used to avoid going into the CRT or STL code.

Thanks,

Ayman Shoukry

VC++ Team
AymanShoukry-MSFT at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 2
Have a read of the following url for more information on setting advanced breakpoints, which can be usefull if for example your line of code contains a reference to an STL class or method, eg within the parameter list of a call to your own functions:

http://msdn2.microsoft.com/en-us/library/5557y8b4.aspx

iccle at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 3

Sure,

I already noticed that, but all tools I already used behave the way I described and I think it will very annoying to check which key hit for this or that statement instead of just hit "Trace Into". Maybe a option on project proprieties or something...

Thanks a lot for your time and effort.

WB::

W.Barbosa at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 4
F11 steps into, F10 steps over.
If you set a breakpoint with F9, you can then right click on the breakpoint and from the context menu choose options to refine it further.
iccle at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 5
OK,

I'll try it and say what I got.

Thanks again!

WB::

W.Barbosa at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...