debugging - Visual Studio 2010 - Debug DLL - Debug Command using rundll32 doesn't work -
i have problem debugging c++ dll project in visual studio 2010. while debuging want dll loaded rundll32.exe automatically. follow these steps (like here http://msdn.microsoft.com/en-us/library/c91k1xcf.aspx):
in solution explorer, select project creates dll.
from view menu, choose property pages.
in property pages dialog box, open configuration properties folder , select debugging category.
in command box, type: "c:\windows\system32\rundll32.exe"
in command arguments box type (main function executed): output.dll, main
in working directory type: $(solutiondir)$(configuration)
attach -> yes
after following these steps, try debug dll, error:
"unable attach. process "c:/windows/system32\rundll32.exe" not running on "my-pc", refresh process list before attempting attach."
anyone know how debug dll, without manually starting rundll32.exe command prompt , manually attaching process?
you should set:
"attach -> no"
otherwise vs not trying start new rundll32.exe process. setting attach -> yes tells vs attach existing process.
Comments
Post a Comment