public MainWindow( IDebuggerSession session, ITypeProvider typeProvider, DebuggerWindowManager windowManager ) { this.session = session; this.typeProvider = typeProvider; this.windowManager = windowManager; }
public MainWindow( IDebuggerSession session, ISourcesProvider sourcesProvider, SourcesWindow sourcesWindow, SourceWindow sourceWindow, LogWindow log, CallStackDisplay callStackDisplay, ExecutionWindow executionWindow, DebuggerWindowManager windowManager ) { this.log = log; this.callStackDisplay = callStackDisplay; this.executionWindow = executionWindow; this.sourcesWindow = sourcesWindow; this.sourceWindow = sourceWindow; this.session = session; this.windowManager = windowManager; if (HasArguments ()) this.session.Port = SdbPortFromCommandLine (); Camera.main.backgroundColor = new Color (0.125f, 0.125f, 0.125f, 0); Application.runInBackground = true; AdjustLayout (); if (!HasArguments ()) return; this.session.TraceCallback += s => Trace (s); sourcesProvider.Path = ProjectPathFromCommandLine (); sourcesWindow.StartRefreshing (); session.Start (); }