Repository navigation
User Manual UI and Debugging
This manual documents every workspace perspective, menu action, customizable toolbar control, dock widget, execution control, breakpoint lifecycle feature, signal/catchpoint manager, copy-on-write checkpoint tool, and keyboard shortcut in GridLock (v0.10.0). For a compact lookup table, see Keyboard Shortcuts and Quick Reference.

1. Workspace Perspectives (Alt+1 .. Alt+4) and Search Everywhere (Double Shift / Ctrl+P / Ctrl+Shift+P)
Switch perspectives non-destructively from the right side of the main toolbar (SOURCE | DEBUG | BINARY | MPI) or via keyboard shortcuts without force-redocking floating panels:
-
SOURCE(Alt+1): Focused source editing layout maximizingEditorTabManager/SourceCodeViewalongsideProject / Symbols. -
DEBUG(Alt+2): Parallel source debugging layout pairingSourceCodeViewwithVariables,CALL STACK,SERVER RACK,WATCH,REGISTERS, and the active bottom console dock. -
BINARY(Alt+3): Binary reverse-engineering layout exposingAddressNavToolbarandDisassemblyViewin 50/50SPLIT (CFG+DECOMP)mode (2D basic-block Control Flow Graph paired with the pseudo-C/C++ decompiler). -
MPI(Alt+4): Activates theMPIgroup on the bottom tool rail, switchesBottomConsoleTabstoMPI Diagnostics, and expands the bottom dock for cluster stall inspection.
Press Ctrl+M at any time to toggle maximizing and restoring the height of the bottom console dock.

-
Double Shift(or the toolbar magnifying-glass button): Opens Search Everywhere inAllscope across workspace files,clangd/ELF symbols, live source line grep matches, menu/shortcut actions, themes, and MPI ranks. -
Ctrl+P(File -> Quick Open): Opens Search Everywhere pre-filtered toFiles. -
Ctrl+Shift+P(View -> Command Palette...): Opens Search Everywhere pre-filtered toActions(>). -
Dedicated Top Header &
S / M / L / XLPopup Scale: Switch scopes by clickingAll | Files | Symbols | Text | Actions | Ranksor pressingTab/Shift+Tab(or typing>,@,/,#). Click theS/M/L/XLheader pill (or configurePreferences -> Appearance -> Search Everywhere Popup Size) to cycle betweenSmall(760x440),Medium(840x500),Large(940x560, default), andX-Large(1080x640). -
2-Line Workspace-Relative Rows & 35-Line Context Preview: Result rows display full titles above clean workspace-relative sub-labels (
tutorial/deadlock_ring.cpp:34), paired with a syntax-highlighted 35-line numbered context preview (capped at250lines /32 KBfor mega-files). PressEnterto open in the active editor,Ctrl+Enterto open in a split pane, orEsc(or clickESC) to dismiss.
Tip
Press Double Shift from anywhere in GridLock to search files, ELF/clangd symbols, workspace text, menu actions, themes, and MPI ranks together, and press Tab inside the overlay to jump directly to a specific tab.
| Menu Action | Shortcut | Behavior |
|---|---|---|
New Project... |
Ctrl+Shift+N |
Opens the split-pane ProjectWizard to scaffold or import an HPC/MPI workspace, configure build system, launcher family, rank count presets (2, 4, 8, 16, 32), and MPI topology flags, and open the generated workspace ready for F5. |
Open Workspace... |
- | Switches active workspace root (switchWorkspaceDirectory), re-roots ProjectExplorerWidget, scans for ELF binaries and sources, and updates the embedded terminal CWD. |
Open Source File |
- | Opens a .cpp, .hpp, .h, or .c file in EditorTabManager. |
Quick Open... |
Ctrl+P |
Opens CommandPaletteDialog in Files / unified fuzzy search mode. |
Save Source File |
Ctrl+S |
Saves the active modified buffer in SourceCodeView. |
Save All |
Ctrl+Shift+S |
Saves all dirty tabs (● indicator) in EditorTabManager. |
Switch Header/Source |
F10 (idle)
|
Toggles between matching .cpp/.c and .hpp/.h/.hxx/.hh files in the same directory. |
Save Session / Save Session As... / Load Session...
|
- | Saves or restores watched variables, active breakpoints, and focused rank via .gridlock/workspace.toml. |
Session Snapshots |
- | Saves and switches rich named profiles in .gridlock/sessions/<name>.toml (breakpoint conditions, ignore counts, rank filters, logpoints, pinned Pointer Graph roots, target env vars, working dir, binary, and rank count). |
Recent Sessions |
- | Lists up to 10 recent workspace/session paths (~/.config/gridlock/debugger.conf) plus Clear Recent Sessions. |
Project Settings |
- | Opens ProjectSettingsDialog (Target Binary, per-target Program Arguments, Working Directory, MPI Ranks (-np), MPI Args, and Programmer's Calculator defaults). |
Attach to Process... |
Ctrl+Alt+P |
Opens the two-tab AttachProcessDialog (Local Processes (/proc) and Remote Target (gdbserver / QEMU)). |
Submit SLURM Job |
- | Substitutes {FILE} in the configured SLURM template and dispatches a preview submission to MockHpcBackend. |
Exit |
- | Cleanly stops/reaps any active debug session and closes GridLock (prompts on unsaved editor tabs). |
| Menu Action | Shortcut | Behavior |
|---|---|---|
Edit -> Undo / Redo / Cut / Copy / Paste / Select All
|
Ctrl+Z / Ctrl+Shift+Z / Ctrl+X / Ctrl+C / Ctrl+V / Ctrl+A
|
Standard edit operations on the focused text editor. |
Edit -> Find in View... / Go to Line... / Toggle Comment
|
Ctrl+F / Ctrl+L / Ctrl+/
|
Inline editor/console find bar, line jump, and // line comment toggle. |
Edit -> Go to Definition |
F12 (in editor)
|
Resolves the symbol under the cursor via ClangdLspClient (textDocument/definition). |
Edit -> Preferences |
Ctrl+, |
Opens the hierarchical PreferencesDialog (Appearance -> Toolbar, Editing, Behavior, Keybindings, Debugger, HPC / Cluster, HPC Integration, Terminal, Docsets). |
View -> Command Palette... |
Ctrl+Shift+P |
Opens CommandPaletteDialog in Actions mode (>). |
View -> Toolbars (Main Toolbar, Address Space Navigation, Reset Toolbars) |
- | Toggles or resets top toolbars. |
View -> Split Editor Right / Split Editor Down / Close Split
|
- | Splits EditorTabManager via a real QSplitter horizontally or vertically and closes secondary panes. |
View -> Redock All Floating Panels |
Ctrl+Shift+R |
Docks all floating QDockWidget panels back into their home slots. |
View -> Project / Symbols, Variables, Registers, WATCH, Server Rack
|
- | Checkable visibility toggles for each dock panel. |
| Menu Action | Shortcut | Behavior |
|---|---|---|
Debug -> Run Target |
Alt+R |
Non-checkable command launching or compiling-and-launching the selected target. |
Debug -> Pause All Ranks |
F6 |
Halts all running MPI ranks simultaneously (haltAll). |
Debug -> Step Over / Step Into / Step Out
|
F10 / F11 / Shift+F11
|
Source-level stepping across the active execution scope (All Ranks or Rank k). |
Debug -> Step Over Instruction (nexti) |
Ctrl+Shift+F10 |
Steps over a single machine instruction (-exec-next-instruction), treating call instructions atomically. |
Debug -> Run to Cursor |
Ctrl+F10 |
Runs the focused rank until the active editor line (-exec-until "<file>:<line>") or focused disassembly address (-exec-until *0x<addr>). |
Debug -> Set Next Statement / Jump... |
- | Relocates execution PC (-exec-jump) to the active or prompted source line after running lexical scope safety checks. |
Debug -> Force Early Return... |
- | Forces immediate return from the active stack frame (-exec-return [expr]) with an optional return expression. |
Debug -> Break on Function Regex (rbreak)... |
- | Installs GDB regex function breakpoints (rbreak <pattern>) across matching symbols. |
Debug -> Process Checkpoints... |
Ctrl+Alt+K |
Opens floating CheckpointDialog for copy-on-write GDB checkpoint/restart snapshots with /proc safety checks. |
Debug -> Signals & Catchpoints... |
Ctrl+Alt+S |
Opens SignalCatchpointDialog for per-signal handle <SIG> dispositions and C++/syscall/dlopen catchpoints. |
Tools -> Build Target / Clean Target / Rebuild Target
|
Ctrl+B / - / - |
Auto-detects Meson, CMake, Make, or standalone mpicxx/mpicc. |
Tools -> Pointer & Struct Graph Visualizer... |
- | Opens floating PointerGraphDialog with Sugiyama DAG layout, pinned roots, Shift+Click node width toggle, and 2x PNG/SVG export. |
Tools -> Array & Field Plotter... |
Ctrl+Alt+G |
Opens floating ArrayPlotDialog for multi-rank 1D overlays, Complex64/128, 2D heatmaps, and virtualized 2D/3D tensor tables. |
Tools -> Programmer's Calculator... |
Ctrl+Alt+C |
Opens floating ProgrammerCalculatorDialog (HEX/DEC/OCT/BIN/IEEE-754/64-bit grid). |
Tools -> Struct Layout & Cache-Line Inspector... |
- | Opens the DWARF byte-map, padding hole, 64-byte cache-line, and greedy packing inspector (see Struct Layout and Cache-Line Inspector). |
Tools -> Run Tests / Help -> About GridLock
|
- | Triggers --test-mode automation runner or displays v0.10.0 version metadata. |
Row 1: Main Toolbar (< 1,040 px Default, Fully Customizable in Preferences -> Appearance -> Toolbar)
-
Target Selector (
#toolbarTargetSelector): Lists bundled MPI showcase programs or workspace ELF/source targets plusOpen ELF / Binary.... -
Config(Launch OptionsPopover): Inline popover configuring per-target/per-workspace--args, working directory, andStop at main(). -
MPI Rank Count (
np:/#toolbarRankSpin): MPI world size (1..256, default8). Collapses multi-rank chrome automatically whennp == 1. -
⚙ Build ▾: Split button compiling the active target (Build,Rebuild,Clean). -
▶ Run,▶ Cont(F5),Over(F10),Into ▾(F11+Step Instruction),Out(Shift+F11),⏸ Pause(F6),■ Stop,● REC: Labeled session execution and time-travel controls. -
Flexible Spring, Search Everywhere (
🔍), andSOURCE | DEBUG | BINARY | MPI: Right-aligned search trigger and non-destructive perspective switcher (customize item order,24pxspacers, flex springs, and separators inEdit -> Preferences -> Appearance -> Toolbar).
-
Instruction Step-Over (
nexti,Ctrl+Shift+F10): Available in theDebugmenu, Search Everywhere, andDisassemblyViewtoolbar (nextialongsidestepi). Issues-exec-next-instructionon GDB (nextwith instruction granularity on DAP). -
Run to Cursor (
Ctrl+F10): Executes until the active cursor line inSourceCodeView(-exec-until "<file>:<line>") or the selected instruction address inDisassemblyView(-exec-until *0x<addr>). Also available via right-click in both views. -
Draggable Gutter PC Arrow & Set Next Statement / Jump (
-exec-jump): Drag the active execution▶arrow vertically insideSourceCodeView's gutter to another line (or useDebug -> Set Next Statement / Jump...or right-clickSet Next Statement / Jump Here). Before executing-exec-jump,MainWindow::checkJumpLexicalScopeHazardchecks whether the jump crosses function boundaries, enters/exits lexical{}scopes, or skips local variable declarations and asks for confirmation if a hazard is detected. -
Force Early Return (
-exec-return): ChooseDebug -> Force Early Return...or right-click any row inCALL STACKto force an immediate return from the active frame, optionally supplying a C/C++ return expression (leave empty forvoidfunctions).
Caution
Non-linear execution controls (Set Next Statement / Jump and Force Early Return) mutate the target rank's instruction pointer or unwind its stack frame without invoking skipped C++ constructors/destructors or MPI collective barriers. Confirm the lexical scope warning before jumping across variable initializations.
Displays proportional clickable segments for the loaded ELF64 binary: .plt, .text (annotated with sym.main), .rodata, .data (or .bss), plus a live stack 0x<rsp> segment while a debugging session is active. Clicking any segment seeks both DisassemblyView and MemView to that section's base virtual address.
Switch between three modes at the top of the left dock, rendered with proportional UI typography and distinct multi-language vector file/folder icons:
-
FILES: Workspace file tree with"Open Folder"and Collapse-All buttons. Double-click a file to open it; pressF2to rename; right-click forNew Source File (.cpp)...,New Header File (.hpp)...(generates#pragma oncestub),New Folder...,Rename..., andDelete...(with optional automatic source registration inmeson.buildorCMakeLists.txt). -
SYMBOLS: Sortable 3-column table (SYMBOL,ADDRESS,SIZE) of up to 800STT_FUNCandSTT_OBJECTsymbols extracted byElfBinaryInspector. Double-click any row to seek to that symbol. -
STRINGS: Sortable 3-column table (ADDRESS,SECTION,STRING) of up to 500 printable ASCII strings (>= 4chars) from.rodata,.dynstr, and.interp.
-
Exact Soft-Tab Indentation, Inline Find &
CodeMinimap:TabandShift+Tabindent or unindent by exacttabWidthspaces (default4, with pixel-exactsetTabStopDistance()),Ctrl+Fopens the inline editor find bar, andCodeMinimapcan be toggled inPreferences -> Editingor via a rebindable shortcut inKeybindings. -
Scope Breadcrumbs, Virtualized CSV Viewer & Git Diff Gutter: Displays
File > Class/Struct > Functionabove the editor, marksAdded(green),Modified(blue), andDeleted(red triangle) lines againstHEAD, and opens multi-megabyte CSV/data files in a fast virtualized viewer without highlighting stalls. -
Multi-Language & Rainbow Bracket Highlighting (
EditorSyntaxHighlighter): Highlights C/C++/CUDA (including bold purpleMPI_*calls),TOML,YAML,Markdown, andCSV/TSV(6-color alternating column rotation), with 5-level cyclic rainbow brackets ((),{},[]) and red underlines on unmatched closing brackets. -
clangdLSP Integration (ClangdLspClient):- Automatically locates
compile_commands.jsonacross.,builddir/,build/,build_meson/, andbuild_cmake/. - Draws wavy error (
#f7768e) and warning (#e0af68) underlines fromtextDocument/publishDiagnostics. - Triggers
LspCompletionPopupon.,->,::, orCtrl+Space. - Shows type/Doxygen hover cards (
HoverWidget) after a400 mshover, jumps to definitions onF12, and supportsfindReferencesand AST-saferenameSymbol.
- Automatically locates
-
Inline Variable Ghost Values, Graph Handoff & Quick Watch Pinning: When paused, appends muted italic
// var = valannotations (toggle inPreferences -> Editing). Right-click any struct/pointer identifier to visualize it inPointerGraphDialog, orCtrl+LeftClick/DoubleClickto pin it toWATCH(DifferentialGrid).

-
Left-Click Gutter: Toggles an unconditional All-Ranks breakpoint (
●crimson circle with white ring). -
Shift+Right-ClickGutter: Opens a quick gutter context menu (Disable Breakpoint/Enable Breakpoint,Insert Temporary Breakpoint (tbreak),Run to Cursor,Set Next Statement / Jump Here). -
Right-Click Gutter: Opens the cursor-anchored
ConditionalBreakpointDialogpopover:-
Non-Destructive
EnabledToggle (-break-enable/-break-disable): UncheckingEnabledkeeps the breakpoint along with its condition, ignore count, rank filter, and command list, rendering a hollow red/amber ring marker ([DISABLED]in hover tooltip) instead of deleting it. UseRemove Breakpoint (F9)to permanently delete a breakpoint. -
Temporary One-Shot Breakpoints (
Temporary (one-shot tbreak)): Inserts-break-insert -t, renders a dashed cyan ring with aTglyph, and automatically removes the gutter marker when triggered (=breakpoint-deleted). -
Suspend: All | Rank / Thread: ChooseAll(rankFilter = -1) orRank / Thread(focused rank only, rendered with a per-rank badge). ClickMake Defaultto persist your preferred scope. -
Condition:&Ignore:: Enter any C/C++ boolean expression with liveclangdvirtual-buffer autocomplete (orPresets ▾), and optional ignore counts (0..10,000,000) via-break-insert -i N/-break-after. -
Logpoint:: Logs[LOGPOINT Rank r] ...with{identifier}substitution intoProgram Outputand immediately resumes (-exec-continue), rendered as an amber diamond with a cyan border. -
GDB Commands on Hit (commands ... end):: Multi-line script box dispatched via-break-commands <id> "cmd1" "cmd2"(clearing the editor sends-break-commands <id>to remove attached commands).
-
Non-Destructive
-
Regex Symbol Breakpoints (
rbreak): ChooseDebug -> Break on Function Regex (rbreak)...(or Command Palette> rbreak), enter a regex such asMPI_.*|Solver::step.*, and GridLock issues-interpreter-exec console "rbreak <pattern>"and tracks newly created=breakpoint-createdrecords.
Open Debug -> Signals & Catchpoints... (Ctrl+Alt+S) to manage runtime signal handling and event catchpoints across all active ranks:

-
Tab 1 (
Signal Disposition Matrix): Filterable table of standard POSIX and HPC fabric signals (SIGFPE,SIGPIPE,SIGUSR1,SIGUSR2,SIGBUS,SIGSEGV,SIGABRT,SIGALRM,SIGINT,SIGTERM,SIGCHLD,SIGURG,SIGILL,SIGTRAP) with liveStop,Print, andPasscheckboxes issuinghandle <SIG> <stop|nostop> <print|noprint> <pass|nopass>, plus 1-clickHPC Quiet DefaultsandTrap Faultspresets. -
Tab 2 (
Catchpoints):-
C++ Exceptions: Install
throw(-catch-throw),rethrow(-catch-rethrow), orcatch(-catch-catch) catchpoints with optional exception-type regex filtering (-r <regex>). -
Linux Syscalls: Quick-toggle preset chips (
mmap,openat,clone3,ioctl,munmap,brk,futex,socket) plus custom comma-separated syscall names (catch syscall ...). -
Shared Libraries: Install
dlopen(-catch-load) ordlclose(-catch-unload) catchpoints with optional library regex filtering.
-
C++ Exceptions: Install
Open Debug -> Process Checkpoints... (Ctrl+Alt+K) to save and restore lightweight Linux copy-on-write process snapshots on a paused rank:

-
Pre-Checkpoint
/proc/[pid]/fd&/proc/[pid]/mapsSafety Scanner: Before creating a fork snapshot,inspectProcessCheckpointSafety()inspects open file descriptors and memory mappings for the focused rank's PID and displays a color-coded status banner plus expandable/procdiagnostics:-
SAFE(#15803dbadge,#22c55eborder): No external sockets, pipes, shared-memory IPC, RDMA verbs, or GPU device mappings detected. -
WARNING: Active Sockets / Pipes / SHM(#b45309badge,#f59e0bborder): Activesocket:[...],pipe:[...],eventfd,/dev/shm/,SYSV, or writable file handles (typical for OpenMPI/MPICH ranks; safe for local single-rank forks if collective barriers are not crossed). -
UNSAFE: RDMA / GPU Device Mapping Detected(#b91c1cbadge,#ef4444border): Active/dev/infiniband/*,uverbs,mlx5,/dev/nvidia*,/dev/kfd, or/dev/dri/device handles/VMAs wherefork()can triggerEFAULTor driver faults.
-
-
Create, Restore, and Delete: Enter an optional note and click
Create CoW Checkpoint (Ctrl+Shift+K)(prompts confirmation onWARNING/UNSAFE), then clickRestore(restart <id>) to jump backward in execution and refresh frames/variables/registers, orDelete(delete checkpoint <id>) to reclaim a snapshot.
Warning
Avoid restoring a single-rank CoW checkpoint backward past a completed MPI_Barrier, MPI_Allreduce, or MPI_Sendrecv call unless sibling ranks were also restored symmetrically; otherwise peer ranks remain ahead of the rolled-back rank in the communicator state.
Right-click any scalar variable, struct member, or array element in the Variables dock and choose Watch Memory Write, Watch Memory Read, or Watch Memory Read/Write (-break-watch [-r|-a] <expr> / DAP dataBreakpoints).
-
Variables(VariablesDockWidget): Sortable 3-column tree (Name,Value,Type) with aScope:rank selector and recursive filter box. Supports live in-place scalar editing (-gdb-set var ...), un-elided hover tooltips,Inspect Full Value...copyable popover, lazy struct/std::vectorexpansion, coral (#f38ba8) mutation highlighting, 256-byteMemory Viewpointer reads, and right-click handoff toWATCH,PointerGraphDialog,ArrayPlotDialog,ProgrammerCalculatorDialog, or hardware watchpoints. -
Registers(RegisterView): Sortable 2-column table (REG,VALUE / ROLE) pinningrip,rsp, andrbpat the top, supporting live in-place register editing (-gdb-set $reg=...) andInspect Full Value..., highlighting changed registers in bold red, and jumping to pointer targets on double-click. -
WATCH(DifferentialGrid): Cross-rank expression matrix (Rank 0 .. Rank N-1rows by watched expression columns) highlighting minority-consensus outliers in light red (rgb(255, 200, 200)), with functional watch removal and double-clickInspect Full Value.... -
CALL STACK: Displays an OS/OpenMPThread:selector (-thread-info/ DAPthreads),Single/Merged Treetoggle (STAT-style prefix-trie view across ranks),Hide OMPruntime-frame collapsing,Symbolgrouping toggle, and up to 64 backtrace frames. Right-click any row forForce Early Return.... -
Server Rack: Wrapping grid of rank cards showingRANK N, state pill (RUN,BRK,DLOCK,DIV,EXIT,IDLE), state/sub-group filter, and current PC (0x...). See Server Rack View.

| Rail Button | Hosted Bottom Tabs |
|---|---|
Debug |
GDB Console (All Ranks / Rank N, stream filter, Raw MI toggle, readline history/completion), Memory View (HEX DUMP with typed (StructType*)0x... overlays, cursor-offset calculator handoff, and LIBRARY MEMORY MAP), Evaluator (All Ranks broadcast and autocomplete), and Program Output (launch command COPY, rank filter, stdout/stderr & [LOGPOINT] stream). |
MPI |
MPI Diagnostics (DEADLOCK ANALYZER, NETWORK LOG, and OPENMP INSPECTOR with libompd region/team/task/barrier trees) and Package Manager (lazy-loaded on first activation). |
Terminal |
Terminal (QTermWidget xterm-256color truecolor Linux PTY with Ctrl+Shift+C/V, smart Ctrl+C/V, compact context menu, and clean prompt redraw on Clear Terminal without Zsh Ctrl+L expansion). |
Docs |
Reference Manual (DOCSETS SQLite3 Zeal viewer + MAN PAGES man -Thtml viewer, lazy-indexed on first activation or F1). |
-
Persistent Command History (
Up/Down): Deduplicated command history persists across sessions in~/.config/gridlock/gdb_history. PressingUp/Downwalks history while preserving any unsent draft line when returning to the bottom. -
Incremental Reverse Search (
Ctrl+R): Opens an inline(reverse-i-search)bar filtering command history live as you type; pressCtrl+Rrepeatedly to cycle older matches,Tab/Right/Enterto accept, orEsc/Ctrl+Gto cancel and restore your original input. -
Live
completeTab Completion (Tab): Queries GDB'scomplete <prefix>viaGdbRankCoordinator(with local fallback across common commands when offline) and opens an interactive completion popup (Up/Downto select,Enterto insert,Escto close).
See Keyboard Shortcuts and Quick Reference for the complete categorized tables covering execution (F5, F6, F10, F11, Shift+F11, Ctrl+F10, Ctrl+Shift+F10), Search Everywhere (Double Shift, Ctrl+P, Ctrl+Shift+P), floating tools (Ctrl+Alt+P/C/G/S/K), perspectives (Alt+1..4), editor/LSP (Tab/Shift+Tab, Ctrl+F, Ctrl+Space, F12, F9), GDB console readline (Up/Down, Ctrl+R, Tab), and disassembly/CFG (Space, X, Alt+P, Home).
GridLock Repository | Releases | Report an Issue | Roadmap | Accessibility | License (MIT)
Documentation mirrored from docs/ on master.
Getting Started & Tutorials
Debugging Workflows
- UI & Debugging Manual
- Server Rack View
- MPI Diagnostics & HPC
- OpenMP OMPD Inspector
- Memory, RE & Profiling
- Struct Layout & Cache Lines
- Reference Manual & Packages
Customization & Reference
- Configuration & Themes
- Keyboard Shortcuts
- GDB Reference & Cheat Sheet
- Screenshot Gallery
- Engineering Roadmap
Extending & Architecture