Skip to content

How debug

Mohamed Ihjas

Asked Dec 18, 2007, 1:28 AM EST2 answers
Share
LinkedInX
hi,
now i create a new custom rule in FxCop. i intergrde also. bt my codes not works. so i have to debug my code and check step by step. actually thi is .DLL package, if i debug it says cant debug library package.. ppl any body can explain me hw to debug library packages?

NOTE: i read http://blogs.msdn.com/fxcop/archive/2007/05/16/faq-how-do-i-debug-a-custom-rule.aspx this document and follow up. bt no use.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Add reference of the library to any application ... create its object ...call its methods and debug the application. In turn you can debug the library :)
    0
  • 0
    You need to add the .dll solution as a part of the actual project. In the Solution Explorer, right click the topmost tree node, the solution node, and click "Add..." then click "Add Existing Item". This will open a file system browser where you can look for your .dll solution (the actual C# solution, not the .dll file) and add it to the current working solution. You will now have the dll solution as a part of the project. You will probably need to update your references to the dll and rebuild the project in order to debug properly but other than that you should be able to put breakpoints and debug the dll from the scope of the main project now :)
    0