• Welcome to Valhalla Legends Archive.
 

Prevent 'Find Source' dialog from popping up while debugging

Started by Maddox, January 29, 2004, 04:33 PM

Previous topic - Next topic

Maddox

This dialog box keeps popping up everytime an ANSI C function appears when stepping through code while debugging. If I hit cancel then it switches to the disassembly view. Anyone know of a fix?
asdf.

Adron

Step over C library functions instead of tracing into them?

Maddox

asdf.

Adron

Well, I typically walk through my programs with step over. Only when I want to examine the internals of some function do I trace into...

Maddox

Quote from: Adron on January 29, 2004, 06:10 PM
Well, I typically walk through my programs with step over. Only when I want to examine the internals of some function do I trace into...

Right, but for some reason I thought trace into would only go into functions directly associated with the project.  ::)
asdf.

iago

Try a different debugger, that would definately solve it.  Either windbg or softice or something like that might work better.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Quote from: Maddox on January 29, 2004, 06:21 PM

Right, but for some reason I thought trace into would only go into functions directly associated with the project.  ::)

I'm not sure how to set the debugger to only step into some functions. Windbg & co are all likely to step into api functions as well. Maybe you should just get used to hitting step over?


Oh, and go install those sources to your hard drive, so you won't be prompted about them all the time.

Maddox

Quote from: Adron on January 30, 2004, 05:16 PM
Quote from: Maddox on January 29, 2004, 06:21 PM

Right, but for some reason I thought trace into would only go into functions directly associated with the project.  ::)

I'm not sure how to set the debugger to only step into some functions. Windbg & co are all likely to step into api functions as well. Maybe you should just get used to hitting step over?


Oh, and go install those sources to your hard drive, so you won't be prompted about them all the time.

The thing is, it doesn't step into API functions, just functions in the standard C library.
asdf.

Skywing

Quote from: Maddox on January 30, 2004, 08:07 PM
Quote from: Adron on January 30, 2004, 05:16 PM
Quote from: Maddox on January 29, 2004, 06:21 PM

Right, but for some reason I thought trace into would only go into functions directly associated with the project.  ::)

I'm not sure how to set the debugger to only step into some functions. Windbg & co are all likely to step into api functions as well. Maybe you should just get used to hitting step over?


Oh, and go install those sources to your hard drive, so you won't be prompted about them all the time.

The thing is, it doesn't step into API functions, just functions in the standard C library.
Perhaps you are using the static link CRT and thus the functions are included in your program image?  It could also be that it thinks it has debug info with lines for those functions.

Maddox

Quote from: Skywing on January 30, 2004, 08:24 PM
Quote from: Maddox on January 30, 2004, 08:07 PM
Quote from: Adron on January 30, 2004, 05:16 PM
Quote from: Maddox on January 29, 2004, 06:21 PM

Right, but for some reason I thought trace into would only go into functions directly associated with the project.  ::)

I'm not sure how to set the debugger to only step into some functions. Windbg & co are all likely to step into api functions as well. Maybe you should just get used to hitting step over?


Oh, and go install those sources to your hard drive, so you won't be prompted about them all the time.

The thing is, it doesn't step into API functions, just functions in the standard C library.
Perhaps you are using the static link CRT and thus the functions are included in your program image?  It could also be that it thinks it has debug info with lines for those functions.

It does it for any C library I try to link.
asdf.

Skywing

Quote from: Maddox on January 30, 2004, 08:47 PM
It does it for any C library I try to link.
You should probably either install the CRT source like Adron recommended, then, or use a different debugger.  Personally, I'd go with WinDbg.

Maddox

Quote from: Skywing on January 30, 2004, 09:33 PM
Quote from: Maddox on January 30, 2004, 08:47 PM
It does it for any C library I try to link.
You should probably either install the CRT source like Adron recommended, then, or use a different debugger.  Personally, I'd go with WinDbg.

Ah ok, thanks.

Edit: nevermind
asdf.

Adron

I'm pretty sure the bottom issue is that he has debug info with lines for them. Removing that would solve the problem, but having lines and source code for the C libraries is a good thing when you run into some assertion deep in them.