I see that with the 'Attach to Process', one can debug the process by setting up break point in Visual Studio IDE.
I think it's pretty cool, and I'm curious what's the mechanism that enables it. I also found that gdb and Mac's Xcode supports the technology.
- Q1 : Can anyone explain how does this work? How can the process mapped to a breakpoint in an IDE or gdb environment?
- Q2 : Are there other compiler/debugger options than /Zi or -g (adding debug info)?
- Q3 : Is this the way to debug dll (dynamic library)?
ADDED
I found this one with MSDN - http://msdn.microsoft.com/en-us/library/c6wf8e4z.aspx