コード例 #1
0
 protected override void HandleShowErrorMessageBox(string errorMsg)
 {
     if (AD7Engine.ShowErrorMessageBoxAction != null)
     {
         AD7Engine.ShowErrorMessageBoxAction("ILRuntime Debugger", errorMsg);
     }
     else
     {
         MessageBox.Show(errorMsg, "ILRuntime Debugger", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
 public DebuggedProcess(AD7Engine engine, string host, int port)
 {
     this.engine            = engine;
     bw                     = new System.IO.BinaryWriter(sendStream);
     socket                 = new DebugSocket();
     socket.OnConnect       = OnConnected;
     socket.OnConnectFailed = OnConnectFailed;
     socket.OnReciveMessage = OnReceiveMessage;
     socket.OnClose         = OnClose;
     socket.Connect(host, port);
     Connecting = true;
 }
コード例 #3
0
        public AD7StackFrame(AD7Engine engine, AD7Thread thread, StackFrameInfo info)
        {
            Engine              = engine;
            this.Thread         = thread;
            this.StackFrameInfo = info;

            _functionName = info.MethodName;
            if (info.LocalVariables != null)
            {
                localVars = new ILProperty[info.LocalVariables.Length];
                for (int i = 0; i < localVars.Length; i++)
                {
                    localVars[i] = new ILProperty(info.LocalVariables[i]);
                    propertyMapping[info.LocalVariables[i].Name] = localVars[i];
                }
            }
            else
            {
                localVars = new ILProperty[0];
            }
            docContext = new AD7DocumentContext(info);
        }
コード例 #4
0
 public AD7Thread(AD7Engine engine, int threadHash)//ThreadMirror threadMirror)
 {
     _engine         = engine;
     this.threadHash = threadHash;
 }
コード例 #5
0
 public ILProperty(AD7Engine engine, AD7Thread thread, VariableInfo info)
 {
     this.engine = engine;
     this.thread = thread;
     this.info   = info;
 }
コード例 #6
0
        internal static void Send(AD7Engine engine)
        {
            AD7ProgramCreateEvent eventObject = new AD7ProgramCreateEvent();

            engine.Callback.Send(eventObject, IID, engine, null);
        }
コード例 #7
0
        public static void Send(AD7Engine engine)
        {
            AD7EngineCreateEvent eventObject = new AD7EngineCreateEvent(engine);

            engine.Callback.Send(eventObject, IID, null, null);
        }
コード例 #8
0
 //private AD7EngineCreateEvent(AD7Engine engine)
 public AD7EngineCreateEvent(AD7Engine engine)
 {
     _engine = engine;
 }
コード例 #9
0
 public AD7BoundBreakpoint(AD7Engine engine, AD7PendingBreakPoint pendingBreakpoint)
 {
     _engine            = engine;
     _pendingBreakpoint = pendingBreakpoint;
 }
コード例 #10
0
 public DebuggedProcessVS(AD7Engine engine, string host, int port)
     : base(host, port)
 {
     this.engine = engine;
 }
コード例 #11
0
 public EngineCallback(AD7Engine engine, IDebugEventCallback2 pCallback)
 {
     _engine        = engine;
     _eventCallback = pCallback;
 }