Thread: display source code while debugging

  1. #1
    Registered User
    Join Date
    May 2006

    display source code while debugging

    Hello everyone,

    I have correctly set the source path in Windbg. After setting a breakpoint, how to display the related source files so that I can use them as the similar approach in Visual Studio 2008, e.g. using F10 to step next, using F11 to step in something like this.

    I have tried ls command in WinDbg, but failed, error message is "No current source file".

    thanks in advance,

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Does windbg identify the executable?
    Is the correct (same version [check timestamp] as the executable) PDB file is present and found?
    Is your source path correct?

    It's been a while since I last used windbg, but I seem to remember that I was able to make it work OK.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a program that prints it's own source code???
    By chottachatri in forum C++ Programming
    Replies: 38
    Last Post: 03-28-2008, 07:06 PM
  2. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  3. Replies: 8
    Last Post: 04-28-2003, 07:29 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  5. Source Code Needed!
    By spongleman in forum C++ Programming
    Replies: 1
    Last Post: 01-02-2002, 08:14 PM