How To debug a Running DLL
-
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
-
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
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
-
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
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
-
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
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.