static public void Run(string application, string args = null) { if (string.IsNullOrEmpty(args)) { MessageQueue.AddCommand(string.Format("mo nc on\nrun \"{0}\"", application)); } else { MessageQueue.AddCommand(string.Format("mo nc on\nrun \"{0}\" {1}", application, args)); } }
static public void Exit() { MessageQueue.AddCommand(NppCommand.Exit); //this will shutdown the channels if (IsRunning) { HandleErrors(() => Process.GetProcessById(debuggerProcessId).Kill()); HandleErrors(() => Process.GetProcessById(debuggeeProcessId).Kill()); } debuggeeProcessId = debuggerProcessId = 0; }
static void WaitForExit(Process debugger) { debugger.WaitForExit(); debuggeeProcessId = debuggerProcessId = 0; MessageQueue.AddCommand(NppCommand.Exit); if (OnDebuggerStateChanged != null) { OnDebuggerStateChanged(); } MessageQueue.AddNotification(NppCategory.Diagnostics + debugger.Id + ":STOPPED"); }
public void Stop() { MessageQueue.AddCommand(NppCommand.Exit); }
static public void StepOut() { MessageQueue.AddCommand("out"); }
static public void Attach(string procId) { MessageQueue.AddCommand("attach " + procId); }
static public void StepIn() { MessageQueue.AddCommand("step"); }
static public void InsertBreakpoint(string file, int line) { MessageQueue.AddCommand("breakpoint+|" + file + "|" + line); }
static public void StepOver() { MessageQueue.AddCommand("next"); }
static public void Go() { MessageQueue.AddCommand("go"); }
static public void Break() { MessageQueue.AddCommand("break"); }
void ExecuteCurrentCommand() { MessageQueue.AddCommand(comboBox1.Text); comboBox1.Text = null; }
private void test_Click(object sender, EventArgs e) { MessageQueue.AddCommand("test"); }