Exemplo n.º 1
0
 public static bool Start(string projectPath, string flex2Path, DataEvent message)
 {
     if (ignoreMessage)
     {
         return(false);
     }
     try
     {
         if (debugger != null)
         {
             debugger.Cleanup();
         }
         startMessage        = message;
         debugger            = new FdbWrapper();
         debugger.OnStarted += new LineEvent(debugger_OnStarted);
         debugger.OnTrace   += new LineEvent(debugger_OnTrace);
         debugger.OnError   += new LineEvent(debugger_OnError);
         if (PluginMain.Settings.VerboseFDB)
         {
             debugger.OnOutput += new LineEvent(debugger_OnOutput);
         }
         debugger.Run(projectPath, flex2Path);
         TraceManager.AddAsync(TextHelper.GetString("Info.CapturingTracesWithFDB"));
         return(true);
     }
     catch
     {
         TraceManager.AddAsync(TextHelper.GetString("Info.FailedToLaunchFBD"), 3);
     }
     return(false);
 }
Exemplo n.º 2
0
 public static bool Start(string projectPath, string flex2Path, DataEvent message)
 {
     if (ignoreMessage) return false;
     try
     {
         if (debugger != null) debugger.Cleanup();
         startMessage = message;
         debugger = new FdbWrapper();
         debugger.OnStarted += new LineEvent(debugger_OnStarted);
         debugger.OnTrace += new LineEvent(debugger_OnTrace);
         debugger.OnError += new LineEvent(debugger_OnError);
         if (PluginMain.Settings.VerboseFDB)
             debugger.OnOutput += new LineEvent(debugger_OnOutput);
         debugger.Run(projectPath, flex2Path);
         TraceManager.AddAsync(TextHelper.GetString("Info.CapturingTracesWithFDB"));
         return true;
     }
     catch
     {
         TraceManager.AddAsync(TextHelper.GetString("Info.FailedToLaunchFBD"), 3);
     }
     return false;
 }