private void HandleEventMessage(EventResponse eventResponse)
        {
            var eventType = eventResponse.Event;
            switch (eventType)
            {
                case "afterCompile":
                    //var compileScriptHandler = CompileScriptEvent;
                    //if (compileScriptHandler != null)
                    //{                       
                    //    compileScriptHandler(this, new CompileScriptEventArgs(eventResponse));
                    //}
                    //break;

                case "break":
                    var breakpointHandler = BreakpointEvent;
                    if (breakpointHandler != null)
                    {
                        breakpointHandler(this, new BreakpointEventArgs(eventResponse));
                    }
                    break;

                case "exception":
                    var exceptionHandler = ExceptionEvent;
                    if (exceptionHandler != null)
                    {
                        //var exceptionEvent = new ExceptionEvent(message);
                        //exceptionHandler(this, new ExceptionEventArgs(exceptionEvent));
                    }
                    break;

                case "beforeCompile":
                case "breakForCommand":
                case "newFunction":
                case "scriptCollected":
                    break;

                default:
                    Debug.Fail(string.Format("Unrecognized type '{0}' in event message: {1}", eventType, eventResponse.Body));
                    break;
            }
        }
 public ExceptionEventArgs(EventResponse exceptionEvent)
 {
     ExceptionEvent = exceptionEvent;
 }
 public BreakpointEventArgs(EventResponse breakpointEvent)
 {
     BreakpointEvent = breakpointEvent;
 }
 public CompileScriptEventArgs(EventResponse compileScriptEvent)
 {
     CompileScriptEvent = compileScriptEvent;
 }