private void InitializeComponent() { this.SourceNavigator = new SourceNavigator(); this.SuspendLayout(); // // SourceNavigator // this.SourceNavigator.Location = new System.Drawing.Point(-91, 0); this.SourceNavigator.Name = "SourceNavigator"; this.SourceNavigator.Size = new System.Drawing.Size(275, 30); this.SourceNavigator.Anchor = AnchorStyles.Right | AnchorStyles.Top; //this.SourceNavigator.Dock = DockStyle.Top; this.SourceNavigator.Visible = false; this.SourceNavigator.TabIndex = 0; // // TextEditor // this.TextEditor.IsReadOnly = false; this.TextEditor.Location = new System.Drawing.Point(0, 0); this.TextEditor.Name = "TextEditor"; this.TextEditor.Dock = DockStyle.Fill; this.TextEditor.Size = new System.Drawing.Size(100, 100); this.TextEditor.TabIndex = 1; // // TextEditorWindow // this.Controls.Add(this.SourceNavigator); this.Controls.Add(this.TextEditor); this.ResumeLayout(false); }
private void CurrentDebuggerSession_Paused(object sender, PauseEventArgs e) { // Exceptions should be handled by the debugger. if (e.Reason == PauseReason.Exception) { return; } var session = sender as DebuggerSession; var range = session.CurrentSourceRange; if (range != null && range.FilePath != null) { SourceNavigator.NavigateToLocation(range); } }