Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
        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;
        }
Beispiel #3
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");
        }
Beispiel #4
0
 public void Stop()
 {
     MessageQueue.AddCommand(NppCommand.Exit);
 }
Beispiel #5
0
 static public void StepOut()
 {
     MessageQueue.AddCommand("out");
 }
Beispiel #6
0
 static public void Attach(string procId)
 {
     MessageQueue.AddCommand("attach " + procId);
 }
Beispiel #7
0
 static public void StepIn()
 {
     MessageQueue.AddCommand("step");
 }
Beispiel #8
0
 static public void InsertBreakpoint(string file, int line)
 {
     MessageQueue.AddCommand("breakpoint+|" + file + "|" + line);
 }
Beispiel #9
0
 static public void StepOver()
 {
     MessageQueue.AddCommand("next");
 }
Beispiel #10
0
 static public void Go()
 {
     MessageQueue.AddCommand("go");
 }
Beispiel #11
0
 static public void Break()
 {
     MessageQueue.AddCommand("break");
 }
Beispiel #12
0
 void ExecuteCurrentCommand()
 {
     MessageQueue.AddCommand(comboBox1.Text);
     comboBox1.Text = null;
 }
Beispiel #13
0
 private void test_Click(object sender, EventArgs e)
 {
     MessageQueue.AddCommand("test");
 }