Example #1
0
            public void handleRunning()
            {
                DebuggerFileView  DebuggerFileView  = "DebuggerFileView";
                DebuggerCallStack DebuggerCallStack = "DebuggerCallStack";
                GuiTextCtrl       DebuggerStatus    = "DebuggerStatus";

                DebuggerFileView.setCurrentLine(-1, true);
                DebuggerCallStack.clear();
                DebuggerStatus.setValue("RUNNING...");
            }
Example #2
0
            public void handleBreak(string line)
            {
                GuiTextCtrl       DebuggerStatus    = "DebuggerStatus";
                GuiTextListCtrl   DebuggerWatchView = "DebuggerWatchView";
                DebuggerCallStack DebuggerCallStack = "DebuggerCallStack";

                DebuggerStatus.setValue("BREAK");

                // Query all the watches.
                for (int i = 0; i < DebuggerWatchView.rowCount(); i++)
                {
                    int    id   = DebuggerWatchView.getRowId(i);
                    string row  = DebuggerWatchView.getRowTextById(id);
                    string expr = Util.getField(row, 0);
                    this.send("EVAL " + id + " 0 " + expr + "\r\n");
                }

                // Update the call stack window.
                DebuggerCallStack.clear();

                string file       = Util.getWord(line, 0);
                string lineNumber = Util.getWord(line, 1);
                string funcName   = Util.getWord(line, 2);

                DbgOpenFile(file, lineNumber.AsInt(), true);

                int nextWord = 3;
                //int rowId = 0;
                int iD = 0;

                while (true)
                {
                    DebuggerCallStack.setRowById(iD, file + "\t" + lineNumber + "\t" + funcName);
                    iD++;
                    file       = Util.getWord(line, nextWord);
                    lineNumber = Util.getWord(line, nextWord + 1);
                    funcName   = Util.getWord(line, nextWord + 2);
                    nextWord  += 3;
                    if (file == "")
                    {
                        break;
                    }
                }
            }