Question

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?

Was it helpful?

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

OTHER TIPS

You can have the clear cut tutorial here . I've tried this working good

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top