Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        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);
            }
        }