Results 1 to 6 of 6

Thread: How to debug into DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    3

    How to debug into DLL

    Hello ,

    I am debuging a windows service where i have dll references.
    I am calling the functions which are in the compiled dll files.

    So could anyone tell me how to debug into dll and check how the function working.

    for example:

    Set sendEmail = New EmailMangament.Send
    sendEmail.CreateBody(Some parameters) As Boolean

    so this function returns boolean while , but i want to debug into the function and see whats going on in it.

    Please help me how to debug in to referenced dll.

    Thanks alot

    Developer9

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: How to debug into DLL

    If you know machine or assembly language then yeah you can look at the instructions... otherwise, you'll have to be content with the return value/s.

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: How to debug into DLL

    You can debug the referenced dll code when the DLL project and your main Project are together in a VBG Group. So, add the DLL project to your main Project, it will create a Project Group, then:

    1) Compile your DLL Project.

    2) Change the DLL Project Compatibility to Binary: In Project/Properties/Component there is a Frame with Caption Version Compatibility, Check Binary Compatibility and browse the compiled DLL file there.

    3) In your main project add a reference to the DLL Project. Now you can debug the DLL code.
    Last edited by jcis; Apr 11th, 2007 at 02:05 AM.

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: How to debug into DLL

    BTW, welcome to the forums.

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    3

    Re: How to debug into DLL

    Quote Originally Posted by jcis
    You can't debug in to referenced dll, you can debug when the DLL project is part of the VBG(Group). Add the DLL project and your main APP in the same group and add the Breakpoints in the DLL code.

    1) Compile your DLL
    2) change the DLL Project Compatibility to Binary and select the compiled DLL file(In Project/Properties/Component there is a Frame with Caption Version Compatibility)
    3) In your main project add a reference to the DLL project. Now you can debug the DLL code.

    Thankyou very much jcis

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    3

    Re: How to debug into DLL

    Quote Originally Posted by leinad31
    BTW, welcome to the forums.
    Thankyou for welcoming.
    And i guess i can learn lot of things here with you guyz.

    Thanks
    developer 9

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