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

How Data Access between ProjectPackage and DebugEngine?

$
0
0

Dear,

        Our team developed a custom IDE with VS2010 SDK, and I'm in charge of Debugger. Everything goes well until I need to implement interfaces for data access between project package and my DebugEngine.

        My DebugEngine uses C# and implements interface IDebugEngineLaunch2, in method LaunchSuspended I initialize a debugger object that provides data and control for target machine. Codes like this:

IDebugEngineLaunch2.LaunchSuspended(...)
{
    //Utils class is used to share data
    //DebuggerObject is a static member
    Utils.DebuggerObject = new x86Debugger();
    ...
}

        I can access this DebuggerObject all time when program runs in DebugEngine.dll, however, When program runs in ProjectPackage.dll it doesn't work and Utils.DebuggerObject is null. ProjectPackage references DebugEngine.dll and use its Utils class, isn't it work? I tried to make my DebuggerObject to a .NET component, which defines interface and use Attribute [ComVisibal(true)], recieved the same result.

        I read DebugEngineSample codes, and I think DebugEngine.dll implements interfaces such as IDebugEngine2, IDebugEngineLaunch2, it should be .Net component. However, ProjectPackage.dll is a VSPackage, is it surpported to share data with DebugEngine.dll? You know, custom IDE always needs refresh costom ToolWindow when debug. So any availible way to resolve this would be appreciated.

        God bless me, or I might be fired, Oh no ...T_T... Wait your answer so so so wished...


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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