static public void Break() { if (IsRunning) { MessageQueue.AddCommand("break"); } }
static public void GoToThread(string threadId) { if (IsRunning) { MessageQueue.AddCommand("gotothread|" + threadId); } }
static public void GoToFrame(string frameId) { if (IsRunning) { MessageQueue.AddCommand("gotoframe|" + frameId); } }
static public void SetInstructionPointer(int line) { if (IsRunning) { MessageQueue.AddCommand("setip " + line); } }
static public void StepOver() { if (IsRunning) { MessageQueue.AddCommand("next"); IsInBreak = false; } }
static public void StepIn() { if (IsRunning) { MessageQueue.AddCommand("step"); IsInBreak = false; } }
static public void Go() { if (IsRunning) { MessageQueue.AddCommand("go"); IsInBreak = false; } }
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 SendSettings(bool breakOnException) { if (IsRunning) { MessageQueue.AddCommand(NppCategory.Settings + string.Format( "breakonexception={0}|maxItemsInTooltipResolve={1}|maxItemsInResolve={2}", breakOnException.ToString().ToLower(), Config.Instance.CollectionItemsInTooltipsMaxCount, Config.Instance.CollectionItemsInVisualizersMaxCount)); } }
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; }
public static string BeginInvoke(string command, string args, Action <string> resultHandler) { //<id>:<command>:<args> string id = GetNextInvokeId(); lock (invokeCompleteHandlers) { invokeCompleteHandlers.Add(id, resultHandler); } // Debug.WriteLine("Invoke send: " + id + "; " + string.Format("{0}:{1}:{2}", id, command, args ?? "")); MessageQueue.AddCommand(NppCategory.Invoke + string.Format("{0}:{1}:{2}", id, command, args ?? "")); return(id); }
private 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 Attach(int proccess) { MessageQueue.AddCommand("attach " + proccess); }
static public void RemoveWatchExpression(string expression) { MessageQueue.AddCommand("watch-|" + expression); }
static protected void AddWatchExpression(string expression) { MessageQueue.AddCommand("watch+|" + expression); }
static public void RemoveBreakpoint(string fileLineInfo) { MessageQueue.AddCommand("breakpoint-|" + fileLineInfo); }