Visual Studio Debugger suport Trace?

Discussion in 'C' started by vql, Oct 13, 2007.

  1. vql

    vql New Member

    Joined:
    Sep 27, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    I usually write programs on Linux & use gdb as a debugger. Gdb has a comfortable is that it support Trace Log, so if the program crash, we can trace up & down to know the position cause a crash.

    Nearly, I use Visual Studio to write C++ programs & use available debugger of Microsoft but It don't support Trace Log. Once, the program crash, It break at the embedded library, not in my source code. And It is very hard to know where my source code causes the crash.

    Specially, my program is a multithread program.

    Please help me. THanks.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    If you have the debug options on then just run the program from the IDE and then when it crashes your program will break at that point so that you can understand where is the problem.
     
  3. vql

    vql New Member

    Joined:
    Sep 27, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    I understand what you said but my program don't crash in my source code, it crash in the library which I used in my source code. Please help me. Thanks.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Then also your best solution is to know which library call crashed with the help of call stack and using the debug environment and then go through the document of the API as to what is the required param.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice