Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Debug: How to instanciate default native IDebugSymbolProvider

$
0
0

Hi,

I want to stub the native IDebugSymbolProvider, because at runtime we inject new native assembly code into our process and want to debug it, and we need to continue debug standard c++ code.  The idea is to stub the native IDebugSymbolProvider and for new injected memory range, provide our custom debug info, else directly call the default vc IDebugSymbolProvider.

It's possible the do it that way ? or it's better the stub the vc DE itself ? Or ... ?

I try to instanciate IDebugSymbolProvider from the guid in the registry, it don't work.

this c# code failed:

            Guid guid = new Guid("{C2E34EBF-8B9D-11D2-9014-00C04FA38338}");
            Type type = Type.GetTypeFromCLSID(guid);
            IDebugSymbolProvider sp = (IDebugSymbolProvider)Activator.CreateInstance(type);

Also try to intanciate default DE whitout success.

Visual Studio 2008

thx for any help

Regards,

ET


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>