CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    .NET Framework CLR Tools: How do I use the Runtime Debugger?

    Q: How do I use the Runtime Debugger?

    A: The Runtime Debugger helps tools vendors and application developers find and fix bugs in programs that target the .NET Framework common language runtime.


    • What tasks can I perform with the Runtime Debugger?

      The run-time debugger allows you to perform the following tasks:


      • Start, attach to, continue, detach from, and stop a running process.

      • Display application domains, assemblies, loaded modules, classes, and global functions.

      • Step into and over both source and native instructions.

      • Show source-code lines.

      • Set the value of a variable.

      • Set the next statement to a new line.

      • Set or display breakpoints.




    • How can I get the options available in CorDbg.exe?

      The full list of 'CorDbg' options can be displayed by typing


      Code:
      CorDbg /?
      from a command prompt.



    • Can I have an example of starting a 'CorDbg.exe' session?

      The following command starts a 'CorDbg.exe' session for the application 'MyApplication.exe' with the program arguments 'a' and '2' and the following optional commands:


      • set a breakpoint in MyApplication.cs at line 42
      • continue the application
      • display symbols in 'MyApplication.exe' matching the string 'SomeString'



      Code:
      cordbg MyApplication.exe a 2 !b MyApplication.cs:42 !g !x MyApplication.exe\!SomeString

    • Can I have an example of running an executable inside a 'CorDbg.exe' session?

      The following command entered from within a 'CorDbg.exe' session (at the 'cordbg' prompt) runs the executable 'MyApplication.exe' with the program arguments 'a' and '2':


      Code:
      run MyApplication.exe a 2 b

    • Where can I find more information on the Runtime Debugger?





    Last edited by Andreas Masur; December 22nd, 2005 at 06:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured