Exemplo n.º 1
0
 public void OnSessionLaunched(object sender, SessionLaunchedEventArgs args)
 {
     _taskContext.ThrowIfNotOnMainThread();
     try
     {
         SubstituteDefaultCommand(args);
     }
     catch (Exception e)
     {
         Trace.WriteLine($"Error while attempting to substitute LoadSymbols command: {e}");
     }
 }
Exemplo n.º 2
0
        // We substitute the default behavior for Module > Load Symbols because for
        // some scenarios it requires pdb symbol file through file selection dialog and
        // if none provided, it doesn't attempt to load the symbols from the symbols
        // store. See (internal) for more details.
        void SubstituteDefaultCommand(SessionLaunchedEventArgs sessionLaunchedArgs)
        {
            _taskContext.ThrowIfNotOnMainThread();

            _programs.Add(sessionLaunchedArgs.Program);

            if (_commandEvents == null && sessionLaunchedArgs.Mode ==
                DebugEngine.DebugEngine.LaunchOption.LaunchGame)
            {
                _commandEvents = GetDte().Events.CommandEvents;
                _commandEvents.BeforeExecute += LoadSymbolsCustomCommand;
            }
        }
 public void NotifySessionLaunched(SessionLaunchedEventArgs args)
 {
     SessionLaunched?.Invoke(this, args);
 }