de-bugging

This is a discussion on de-bugging within the C++ Programming forums, part of the General Programming Boards category; I am using Microsoft Visual C++ (no microsoft barbs please, its the one we need for my course), and am ...

  1. #1
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163

    de-bugging

    I am using Microsoft Visual C++ (no microsoft barbs please, its the one we need for my course), and am having real problems with the debugger.

    I couldn't get the debugger working so I burnt my program and took it to school and the teacher taught me how to use the debugger (it worked fine), but now that I am at home the debugger will work for about 2-3 lines before going into this ->
    02F7251E jmp 02F7256B
    02F72520 mov eax,1
    etc... etc...
    From here I have no idea what is happening and can do nothing short of stopping the debugger, please note that it didn't do this on any other computer (tried 2 teachers computers).
    My site to register for all my other websites!
    'Clifton Bazaar'

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    It's hard to say without knowing what your debugging, but you will only be able to step into the functions where you have the source available. Some of the C runtime source provided in MSVC (in your CRT directory) is implemented in asm (functions like strlen()- in CRT\SRC\INTEL), so if you may be stepping into these functions. Or you might be looking at the disassembly of your exe.
    Last edited by zen; 11-11-2001 at 09:25 AM.
    zen

  3. #3
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163
    But it is de-bugging perfectly on other computers, no problems at all no matter how far into the program we go. Yet on my computer it only goes 2-3 lines before going into dis-assembly window and the program wont start.
    My site to register for all my other websites!
    'Clifton Bazaar'

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Make sure you compile your program for debug mode on your PC.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #5
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163
    Yeah I got that part right in the configurations menus. There must be some other minor option I have missd though.

    I keep getting the same 'error' messages when I start in debugger mode->
    Loaded 'D:\WINNT\System32\ntdll.dll', no matching symbolic information found.
    Loaded 'D:\WINNT\system32\OPENGL32.DLL', no matching symbolic information found.
    Loaded 'D:\WINNT\system32\msvcrt.dll', no matching symbolic information found.
    Loaded 'D:\WINNT\system32\KERNEL32.DLL', no matching symbolic information found.
    etc etc

    I have all the .dll's but how do I find this symbolic info?
    Last edited by phantom; 11-11-2001 at 06:27 PM.
    My site to register for all my other websites!
    'Clifton Bazaar'

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,742
    > I have all the .dll's but how do I find this symbolic info?
    You should have either corresponding .sym files, or debug versions of the .dll files.

    These should have been installed when you installed the compiler.

    You should still be able to debug your code, but you'll have more difficulty when the code enters one of those .dll files. You'll be able to debug 'raw' as it were, and this is much harder than if you had the symbols loaded.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163
    I have just re-installed visual C++ for the 6th time in 3 days, both my copy and a friends copy, with and without service pack 4 but the debugger simply will not work on my computer (windows 2000, pentium 3). I burnt my code again and went to a friends house to see if it works on another computer and it de-bugged fine.
    Please help cause I am losing my sanity over this. It is in de-bug mode.
    My site to register for all my other websites!
    'Clifton Bazaar'

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  2. pointer problem or so...
    By TL62 in forum C Programming
    Replies: 19
    Last Post: 01-12-2008, 11:45 PM
  3. Help!
    By Tyrant in forum C Programming
    Replies: 19
    Last Post: 12-04-2007, 03:25 AM
  4. Error in reading from file
    By paulovitorbal in forum C Programming
    Replies: 4
    Last Post: 05-02-2006, 07:15 AM
  5. 1337 bible, Gen 11
    By Paz_Rax in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 05-20-2005, 10:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21