display source code while debugging

This is a discussion on display source code while debugging within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, I have correctly set the source path in Windbg. After setting a breakpoint, how to display the related ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    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,
    George

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

    --
    Mats
    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, 06: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 Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  5. Source Code Needed!
    By spongleman in forum C++ Programming
    Replies: 1
    Last Post: 01-02-2002, 07:14 PM

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