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