Exemple #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);
     }
 }
Exemple #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;
 }
        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);
        }
Exemple #4
0
 public AD7Thread(AD7Engine engine, int threadHash)//ThreadMirror threadMirror)
 {
     _engine         = engine;
     this.threadHash = threadHash;
 }
Exemple #5
0
 public ILProperty(AD7Engine engine, AD7Thread thread, VariableInfo info)
 {
     this.engine = engine;
     this.thread = thread;
     this.info   = info;
 }
Exemple #6
0
        internal static void Send(AD7Engine engine)
        {
            AD7ProgramCreateEvent eventObject = new AD7ProgramCreateEvent();

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

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