Ejemplo n.º 1
0
        private bool ResetDebugger()
        {
            runForm.debugger = this.debugger;

            var result = runForm.ShowDialog();

            if (result != DialogResult.OK)
            {
                return(false);
            }

            RemoveCurrentHighlight();

            /*currentLine = ResolveLine(0);
             * if (currentLine > 0 )
             * {
             *  TextArea.Lines[currentLine].MarkerAdd(STEP_BG);
             * }*/

            currentLine = -1;

            shouldReset = false;

            debugger.Reset();

            return(true);
        }
Ejemplo n.º 2
0
        private bool ResetDebugger()
        {
            if (string.IsNullOrEmpty(targetAVMPath))
            {
                MessageBox.Show("Please load an .avm file first!");
                return(false);
            }

            runForm.debugger = this.debugger;

            var result = runForm.ShowDialog();

            if (result != DialogResult.OK)
            {
                return(false);
            }

            RemoveCurrentHighlight();

            /*currentLine = ResolveLine(0);
             * if (currentLine > 0 )
             * {
             *  TextArea.Lines[currentLine].MarkerAdd(STEP_BG);
             * }*/

            currentLine = -1;

            shouldReset = false;

            debugger.Reset();

            logView.Clear();
            stackPanel.Clear();

            UpdateGasCost();

            return(true);
        }