Saturday, June 3, 2017

Starting VS debugger when you can't attach to process

Problem
I have a VB6 program that uses my .NET DLL. In an initializing function (before the UI is shown) a problem is happening that I need to debug by stepping into the .NET code. This is made difficult though, because i cannot Attach to Process 

Solution
Use System.Diagnostics.Debugger.Launch in the .NET code. When I use this, i no longer need to try to use Attach to Process

No comments:

Post a Comment

There was an error in this gadget