public void handleRunning() { DebuggerFileView DebuggerFileView = "DebuggerFileView"; DebuggerCallStack DebuggerCallStack = "DebuggerCallStack"; GuiTextCtrl DebuggerStatus = "DebuggerStatus"; DebuggerFileView.setCurrentLine(-1, true); DebuggerCallStack.clear(); DebuggerStatus.setValue("RUNNING..."); }
public static void DbgRemoveBreakPoint(string file, uint line) { DebuggerFileView DebuggerFileView = "DebuggerFileView"; DebuggerBreakPoints DebuggerBreakPoints = "DebuggerBreakPoints"; TCPDebugger TCPDebugger = "TCPDebugger"; if (file == omni.sGlobal["$DebuggerFile"]) { DebuggerFileView.removeBreak(line); } TCPDebugger.send("BRKCLR " + file + " " + line + "\r\n"); DebuggerBreakPoints.removeBreak(file, line.AsString()); }
public static void DbgFileViewFind() { DebuggerFileView DebuggerFileView = "DebuggerFileView"; GuiTextEditCtrl DebuggerFindStringText = "DebuggerFindStringText"; GuiCanvas Canvas = "Canvas"; DebuggerFindDlg DebuggerFindDlg = "DebuggerFindDlg"; string searchString = DebuggerFindStringText.getValue(); DebuggerFileView.findString(searchString); Canvas.popDialog(DebuggerFindDlg); }
public static void DbgSetBreakPoint(string file, uint line, bool clear, string passct, string expr) { DebuggerFileView DebuggerFileView = "DebuggerFileView"; DebuggerBreakPoints DebuggerBreakPoints = "DebuggerBreakPoints"; TCPDebugger TCPDebugger = "TCPDebugger"; if (!clear) { if (file == omni.sGlobal["$DebuggerFile"]) { DebuggerFileView.setBreak(line); } } DebuggerBreakPoints.addBreak(file, line.AsString(), clear, passct, expr); TCPDebugger.send("BRKSET " + file + " " + line + " " + clear + " " + passct + " " + expr + "\r\n"); }
public void handleBreakList(string line) { DebuggerFileView DebuggerFileView = "DebuggerFileView"; DebuggerBreakPoints DebuggerBreakPoints = "DebuggerBreakPoints"; string file = Util.getWord(line, 0); if (file != sGlobal["$DebuggerFile"]) { return; } int pairs = Util.getWord(line, 1).AsInt(); uint curLine = 1; DebuggerFileView.clearBreakPositions(); // Set the possible break positions. for (int i = 0; i < pairs; i++) { uint skip = Util.getWord(line, i * 2 + 2).AsUInt(); int breaks = Util.getWord(line, i * 2 + 3).AsInt(); curLine += skip; for (int j = 0; j < breaks; j++) { DebuggerFileView.setBreakPosition(curLine); curLine++; } } // Now set the actual break points. for (int i = 0; i < DebuggerBreakPoints.rowCount(); i++) { string breakText = DebuggerBreakPoints.getRowText(i); string breakLine = Util.getField(breakText, 0); string breakFile = Util.getField(breakText, 1); if (breakFile == sGlobal["$DebuggerFile"]) { DebuggerFileView.setBreak(breakLine.AsUint()); } } }
public static void DbgOpenFile(string file, int line, bool selectLine) { DebuggerFileView DebuggerFileView = "DebuggerFileView"; TCPDebugger TCPDebugger = "TCPDebugger"; if (file != "") { // Open the file in the file view. if (DebuggerFileView.open(file)) { // Go to the line. DebuggerFileView.setCurrentLine(line, selectLine); // Get the breakpoints for this file. if (file != omni.sGlobal["$DebuggerFile"]) { TCPDebugger.send("BREAKLIST " + file + "\r\n"); omni.sGlobal["$DebuggerFile"] = file; } } } }