Thread: help with debugging

  1. #1
    Registered User Mark S.'s Avatar
    Join Date
    May 2005

    help with debugging


    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.

    // debug experiment
    using namespace std;
    int main(void)
    	int num = 1;
    	char letter = 't';
    	char name[] = "Mark";
    	int length = strlen(name);
    	int age = 29;

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Northern Virginia/Washington DC Metropolitan Area
    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.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Jan 2005
    ...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.

  4. #4
    Registered User
    Join Date
    Jun 2004
    my VC++ has necessary files... did you do a full install ??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev-C++: Problems with Breakpoint Debugging
    By Thileepan_Bala in forum C Programming
    Replies: 1
    Last Post: 01-17-2008, 10:48 AM
  2. Problem in debugging in Eclipse
    By Bargi in forum Linux Programming
    Replies: 1
    Last Post: 08-21-2007, 09:53 AM
  3. Debugging Dev C++
    By tuurb046 in forum Tech Board
    Replies: 10
    Last Post: 08-16-2007, 12:51 PM
  4. Debugging book recommendation
    By dagans in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 09-13-2005, 07:35 PM
  5. debugging directx apps
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 08-16-2003, 08:56 AM