Search code examples
.netdllvb6vb6-migrationcomvisible

Debugging Com-Visible DLL for VB6 App


I'm updating an app that was written in VB6. I want to write the New code in VS2010 and keep it in a DLL. But I cannot figure out how to Debug the DLL code. I can get it to step into the DLL code from a test app in VS2010, but not from the real app in VB6. Any thoughts?


Solution

  • When you are running the APP in the VB6 IDE attach the Visual Studio 2010 debugger to the VB6.Exe (Tools -> Attach To Process in VS2010) and select the correct level of Managed Code you are using (DotNet 4.0 or DotNet 2.0 depending on what your DLL was written in). You should have your DotNet Dll project loaded already in Visual Studio 2010, and then you can set break points in your Visual Studio 2010 project.Attach to process