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

CheckBreakpoint() private method

private CheckBreakpoint ( string handle ) : bool
handle string
return bool
        bool CheckBreakpoint(string handle)
        {
            BreakEventInfo binfo;
            if (!breakpoints.TryGetValue (handle, out binfo))
                return true;

            Breakpoint bp = (Breakpoint) binfo.BreakEvent;

            // node debugger has no conditional breakpoints.
            /*
            if (!string.IsNullOrEmpty (bp.ConditionExpression) && bp.BreakIfConditionChanges) {
                // Update the condition expression
                NodeCommandResult res = RunCommand ("-data-evaluate-expression", Escape (bp.ConditionExpression));
                string val = res.GetValue ("value");
                RunCommand ("-break-condition", handle.ToString (), "(" + bp.ConditionExpression + ") != " + val);
            }
            */

            if (bp.HitAction == HitAction.PrintExpression) {
                throw new NotSupportedException ();
                /*
                NodeCommandResult res = RunCommand ("repl", Escape (bp.TraceExpression));
                string val = res.GetValue ("value");
                NotifyBreakEventUpdate (binfo, 0, val);
                return false;
                */
            }
            return true;
        }