IDE Usage Guide

Phograph is a macOS application for building programs visually. This guide covers the IDE’s windows, menus, and workflows.

The Workspace

The main window has four areas:

File Menu

CommandShortcutDescription
New ProjectCmd+NCreate an empty project
Open Project…Cmd+OOpen a .phograph.json file
Browse Examples…Cmd+Shift+EOpen the Example Browser
Save ProjectCmd+SSave to the current file
Save Project As…Cmd+Shift+SSave to a new file
Export as PDF…Cmd+Shift+PExport current graph as vector PDF
Export as SVG…Export current graph as SVG

Edit Menu

CommandShortcutDescription
DeleteDeleteRemove selected nodes
Select AllCmd+ASelect every node on the canvas
DuplicateCmd+DDuplicate selected nodes

View Menu

CommandShortcutDescription
Zoom InCmd+=Increase canvas zoom
Zoom OutCmd+-Decrease canvas zoom
Fit to WindowCmd+1Zoom to fit all nodes
Toggle SidebarCmd+0Show/hide the Class Browser
Toggle InspectorCmd+Option+0Show/hide the Inspector
Toggle ConsoleCmd+YShow/hide the Console

Run Menu

CommandShortcutDescription
RunCmd+RRun the selected method at full speed
DebugCmd+Shift+RRun with the debugger attached
StopCmd+.Stop the current execution
ContinueCmd+\Resume from a breakpoint
Step OverCmd+'Execute one node, skip method calls
Step IntoCmd+;Execute one node, enter method calls
Clear ConsoleCmd+KClear the console output

Libraries Menu

CommandShortcutDescription
Manage Libraries…Cmd+Shift+LOpen the Library Manager
Refresh Library CatalogRe-scan installed libraries

Working with the Canvas

Adding nodes

Connecting wires

Selecting and moving

The Class Browser

The sidebar lists your project’s structure as a tree: Section > Class > Method > Case. Click any method or case to view it on the canvas.

Universal methods (not attached to a class) appear directly under the section. The entry point is typically the main method.

The Inspector

When a node is selected, the Inspector shows its editable properties:

The Example Browser

Open with Cmd+Shift+E. Examples are organized by category (Math, String Processing, Data Structures, etc.). Click one to load it into the workspace.

Running a Program

  1. Select a method in the Class Browser (usually main).
  2. Press Cmd+R to run.
  3. Output appears in the Console. The status bar shows success or error.

Debugging

  1. Right-click a node and choose Toggle Breakpoint. A red dot appears on the node.
  2. Press Cmd+Shift+R to start a debug session.
  3. Execution pauses at breakpoints. The paused node is highlighted yellow.
  4. Use Step Over, Step Into, or Continue to advance.
  5. Wire values are shown as labels during debugging (trace overlay).
  6. Press Cmd+. to stop at any time.

Exporting Graphs

You can export the current graph as a vector graphic for use outside the IDE.

Both formats preserve the exact visual layout of the canvas: node colors, pin positions, and Bezier wire curves.

Saving and Loading

Projects are saved as .phograph.json files. The JSON format stores sections, classes, methods, cases, nodes, and wires. You can version-control these files with git.