Debug C dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sapna DSouza
    New Member
    • Aug 2010
    • 2

    Debug C dll

    Hi,

    I want to debug a C dll that is being called by my C# code. I want to put break points in the function that C# calls. once i run the code in c# it does not step into the c code that i expect it to step into. i have followed the following steps:

    1) in c# i have set the option of enabled unmanaged code debugging
    2) i the c dll codes properties, under debug i have mentioned the .exe of the c# code that will call it also i have mentioned the arguments that it will pass.

    is there anything else that i need to do? am i missing out something?
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    You cannot step into a pre-compiled DLL like that so no matter what you do it's not going to work the way you're wanting it to.

    If you want to debug that C DLL then you're going to have to open it's source code in an IDE and do it that way. If you dont have the source, such as it's something you purchased then you're pretty much out of luck.

    Comment

    • Sapna DSouza
      New Member
      • Aug 2010
      • 2

      #3
      oh no.. i have the source code for the dll and i have opened it in the visual studio IDE. it isn't stepping into the code though. and i'm kind of stuck right now. any suggestions?

      Comment

      Working...