private void listViewBreakpoints_ItemDoubleClicked(object sender, LuaRemoteDebuggerControls.ItemDoubleClickEventArgs e) { EditorBreakpoint breakpoint = e.Item.Tag as EditorBreakpoint; if (breakpoint != null) { LuaSourceEditor editor = OpenFile(breakpoint.FileName); if (editor != null) { editor.GoToLine(breakpoint.Line); } } }
private void listViewCallStack_ItemDoubleClicked(object sender, LuaRemoteDebuggerControls.ItemDoubleClickEventArgs e) { CallStackItem?item = e.Item.Tag as CallStackItem?; if (item != null && item.Value.Source != null && item.Value.Source.EndsWith(".lua", StringComparison.OrdinalIgnoreCase)) { LuaSourceEditor editor = OpenFile(GetFullSourcePath(item.Value.Source)); if (editor != null) { editor.GoToLine(item.Value.Line); } } if (debugger.HostVersion >= 7) { luaVariablesModel.SetFilter(item != null ? item.Value.FrameIndex : -1, false); } }