Debugger Not Hitting Breakpoints in Native C++ Dll

  • Thread starter Thread starter HighDef26.2
  • Start date Start date
H

HighDef26.2

Guest
I have a native C++ dll that I need to debug (.NET 2010). It is being called from an executable I don't have the source code for. The dll needs to be located in a specific directory not under my project's folders. After I start the debugger for the dll, and attach to the executable, I have the exe call my dll. The dll appears to get called properly, but it seems perhaps I'm not attached to the dll it's calling. What I get in the debugger is the hollow breakpoint with an exclamation point with the message, "The breakpoint will not currently be hit. No executable code is associated with this line. Possible causes include: preprocessor directives or compiler/linker optimizations."

As near as I can tell, I have my project properties for debugging set up correctly based on this article:

Download Visual Studio 2005 Retired documentation from Official Microsoft Download Center

What could I be missing here? Does it have anything to do with the exe, dll, and dll project files all being in different locations? Am I not attaching to the correct dll somehow?

Continue reading...
 
Back
Top