Mono.JavaScript.Node.Debugger.NodeDebuggerSession.OnUpdateBreakEvent C# (CSharp) Method

OnUpdateBreakEvent() protected method

protected OnUpdateBreakEvent ( Mono.Debugging.Client.BreakEventInfo binfo ) : void
binfo Mono.Debugging.Client.BreakEventInfo
return void
        protected override void OnUpdateBreakEvent(BreakEventInfo binfo)
        {
            Breakpoint bp = binfo.BreakEvent as Breakpoint;
            if (bp == null)
                throw new NotSupportedException ();

            if (binfo.Handle == null)
                return;

            bool ss = InternalStop ();

            try {
                if (bp.HitCount > 0) {
                    RunCommand ("-break-after", binfo.Handle.ToString (), bp.HitCount.ToString ());
                    breakpointsWithHitCount.Add (binfo);
                } else
                    breakpointsWithHitCount.Remove (binfo);

                if (!string.IsNullOrEmpty (bp.ConditionExpression) && !bp.BreakIfConditionChanges)
                    RunCommand ("-break-condition", binfo.Handle.ToString (), bp.ConditionExpression);
                else
                    RunCommand ("-break-condition", binfo.Handle.ToString ());
            } finally {
                InternalResume (ss);
            }
        }