Debug a DLL(class library)


Debugging a class library(.dll) in c#.net

Want to DEBUG a DLL.........?
(or)
Want to DEBUG a single code snippet such as a single Class(in the whole project)?

Then here is the solution:-

1. Once your code is ready, put the breakpoint at a particular line in the code from where you need to debug.

2. open IMMEDIATE window(alt+ctrl+I)

3. If your Class is not static then instantiate the Object and call the method as shown below


DebugTestNamespace.DebugTestClass obj = new DebugTestNamespace.DebugTestClass();
{DebugTestNamespace.DebugTestClass}
obj.DebugTestMethod();


Check the images attached.


Attachments

  • DebugTest code ready (37836-19710-DebugTest.bmp)
  • DebugTest code ready - debugging (37836-19714-DebugTest-debugging.bmp)
  • Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: