-
help with debugging
hello,
I am trying to familiarize myself with the visual C++ debugger.
In the code below when i step into the strlen() function a small window opens up saying please enter the path for STRLEN.ASM.
I have tried looking for the file but its not there.
How do i debug programs which contain functions from a different library like string.h.
Code:
// debug experiment
#include<iostream>
#include<string.h>
using namespace std;
int main(void)
{
int num = 1;
char letter = 't';
char name[] = "Mark";
int length = strlen(name);
int age = 29;
return(0);
}
thanks.
-
Generally you would want to step over (F10) and not into (F11) standard library functions. The only functions you would likely wish to step into are those you yourself write.
-
...if your program was crashing in a library function you could be fairly sure that there is a problem with the argument(s) you were passing to it.
-
my VC++ has necessary files... did you do a full install ??