Matasano Chargen: Debug Windows Service Startup Without Using gflags
-
Russ Osterlund · 2 years agoAlternatively, you could follow step 2 and then download PEBrowse Interactive from my website, www.smidgeonsoft.com. From File/IFEO Manager, add the service -- this uses the registry key, Image File Execution Options and launches PEBrowse when the service starts. Then under Tools/Configure/Debug, check the option, "Break on Process Initialization". When the service starts, this will stop the process and bring up the debugger when the service is first loaded. This allows one to debug the service without munging the executable with an INT 3 and even debug the loader and any DLLs startup code. Or, you can read the documentation page on my website for how to debug ASP.NET pages which essentially uses the same technique.
-
thyroid problems · 4 months agoI also think that you should follow step 2.