Esempio n. 1
0
        private SystemExecutionState ShowBreakpoints()
        {
            bool set = false;

            foreach (BreakpointEntry e in BreakpointManager.EnumerateBreakpoints())
            {
                set = true;
                Console.WriteLine("Address {0}, break on {1}", Helpers.ToOctal(e.Address), e.Type);
            }

            if (!set)
            {
                Console.WriteLine("No breakpoints are currently defined.");
            }

            Console.WriteLine("\nBreakpoints are {0} globally.", BreakpointManager.BreakpointsEnabled ? "enabled" : "disabled");

            return(SystemExecutionState.Debugging);
        }