Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How To debug a Running DLL

How To debug a Running DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingtutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ThatsAlok
    wrote on last edited by
    #1

    I have Seen many people debuging there dll when they are running under context of some other application and they are able to set break point tooo. i am too use to bebug with help of MessageBoxes(Yeah it Silly,but work for me ) but now it not working as i have to make a LSP Dll.so what i need to DEBUG any runnign DLL. Hope somebody understand my Problem . PLEASSSSSSSSSeeeee ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

    A R 2 Replies Last reply
    0
    • T ThatsAlok

      I have Seen many people debuging there dll when they are running under context of some other application and they are able to set break point tooo. i am too use to bebug with help of MessageBoxes(Yeah it Silly,but work for me ) but now it not working as i have to make a LSP Dll.so what i need to DEBUG any runnign DLL. Hope somebody understand my Problem . PLEASSSSSSSSSeeeee ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      A Offline
      A Offline
      avenger_sb25
      wrote on last edited by
      #2

      Well , if you are using Visual Studio IDE, Press F9 to set a breakpoint in the source file. Then, Go to : Project>>Settings>>Debug TAB In the "Executable for debug session:" Edit box, BROWSE and select the EXE file that is going to use your dll. THEN PRESS 'OK' NOW RUN YOUR PROGRAM BY CLICKING THE '!' ICON OR ON THE TOOLBAR...or . THIS WILL RUN THE EXE THAT YOU SELECTED EARLIER. NOW IF THAT PROGRAM(EXE) MAKES USE OF AN EXPORTED FUNCTION FROM YOUR DLL, AND IF YOU HAVE SET UP YOUR BREAKPOINTS CORRECTLY, YOU CAN DEBUG YOUR DLL...... happy debugging! ...Avenger


      Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs

      T 1 Reply Last reply
      0
      • A avenger_sb25

        Well , if you are using Visual Studio IDE, Press F9 to set a breakpoint in the source file. Then, Go to : Project>>Settings>>Debug TAB In the "Executable for debug session:" Edit box, BROWSE and select the EXE file that is going to use your dll. THEN PRESS 'OK' NOW RUN YOUR PROGRAM BY CLICKING THE '!' ICON OR ON THE TOOLBAR...or . THIS WILL RUN THE EXE THAT YOU SELECTED EARLIER. NOW IF THAT PROGRAM(EXE) MAKES USE OF AN EXPORTED FUNCTION FROM YOUR DLL, AND IF YOU HAVE SET UP YOUR BREAKPOINTS CORRECTLY, YOU CAN DEBUG YOUR DLL...... happy debugging! ...Avenger


        Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Thank You sir! actually my problem is I am developing Layered Service Provider DLL(which will filter all the call make through the WINSOCK DLL) now i don't know which exe is handlling the call or filtering Winsock request. Now what i DO:doh: ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

        1 Reply Last reply
        0
        • T ThatsAlok

          I have Seen many people debuging there dll when they are running under context of some other application and they are able to set break point tooo. i am too use to bebug with help of MessageBoxes(Yeah it Silly,but work for me ) but now it not working as i have to make a LSP Dll.so what i need to DEBUG any runnign DLL. Hope somebody understand my Problem . PLEASSSSSSSSSeeeee ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

          R Offline
          R Offline
          Renjith Ramachandran
          wrote on last edited by
          #4

          put the exe file name in project>Settings>Debug (executable for debug section) Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups