The diff tool built for PowerBuilder.

pb-diff compares every PowerBuilder object type the way PowerBuilder builds it. For you, for your AI agents and for your CI pipeline.

Try pb-diff

One change to the window w_order_entry, seen three ways: pb-diff shows the function wf_total and the button cb_save old and new side by side; the coding agent Pi runs pb-diff-cli compare, gets exit code 1 and summarises the changes; a GitHub Actions run of pb-diff-ci on a pull request succeeds and lists w_order_entry.srw as modified.

Every change in its place.

pb-diff shows every change where it belongs: in a function, an event, a control, or a single DataWindow property. It compares PBL files directly, without exporting anything.

pb-diff comparing two releases of the library orders.pbl: the changed objects are listed by status, the DataWindow d_order_lines is opened from the library, and its format property is shown old and new side by side.

A diff tool designed for AI coding agents.

An agent working on PowerBuilder code can call pb-diff-cli instead of reading raw exports. It gets the object hierarchy and the changed functions, events, controls, properties and lines as versioned JSON, with documented exit codes and published schemas.

The coding agent Pi, before editing the DataWindow d_order_lines, runs pb-diff-cli compare on its old and new exports, gets exit code 1 and reports the changed format property and data source.

Check every build in the pipeline.

pb-diff-ci is pb-diff's command-line tool for build servers: a single file to copy onto each build machine, hosted runners included, with no licence to manage and no network connection.

It stops the pipeline on changed objects, on a damaged library or on sources a merge left broken.

Your build tells you whether the application compiles. pb-diff-ci tells you which objects changed.

A GitHub Actions run that fails: pb-diff-ci check finds unresolved merge conflict markers in w_customer_lookup.srw, and the job stops at Check the sources.

A view for each object and file type.

pb-diff is built to compare every PowerBuilder object type (Application, Window, DataWindow, UserObject, Function, Menu, Structure, Query, Pipeline, Project) and file type (.pbl, .pbd, .pbw, .pbt, .pbsln, .pbproj, .pbr, .gen) by its own structure, and shows each change in the part it belongs to.

pb-diff opening four changed items in turn, each in a view of its own: the query q_open_orders by columns, the menu m_order_desk by items, the target order_desk.pbt by library list, and the resource file order_desk.pbr by pictures.

Merge the work of several developers.

Run a three-way merge from a common base: changes made on one side only are applied, and conflicts are listed by function, event or control for you to decide.

pb-diff never writes conflict markers into PowerScript.

pb-diff three-way merge of n_pricing: of_shipping is merged automatically, and the conflict in of_discount is resolved by taking the right side, leaving the result ready to save.

Review Git or SVN changes from the IDE.

From the PowerBuilder IDE, pb-diff shows the Git or SVN changes of your workspace or Solution. It can also be the diff and merge tool of your Git or SVN client, such as TortoiseGit, TortoiseSVN or Git Extensions.

In the PowerBuilder 2025 IDE, the Git changes of the Order Desk Solution: the diff of the modified user object n_order_service opens in pb-diff.

Compare two whole versions.

pb-diff compares two versions object by object, and shows what changed in the build too: the library list, the targets and the resources.

pb-diff comparing two versions of the Order Desk application folder: changed objects and build files are listed, and the target order_desk.pbt shows invoicing.pbl added to its library list.

Find damaged libraries.

pb-diff checks many libraries at once, from a whole workspace to the archived copies of a series of builds, and points out the damaged ones and the objects affected.

pb-diff verifying four libraries at once: three are valid, and the damaged orders.pbl is selected, with its CHAIN_SHARED error on w_order_entry.srw.

Compare and merge PowerBuilder Solutions.

pb-diff compares and merges Solution sources with the same views as libraries and exports, and a merged file keeps the Solution's own format. Moving from a workspace? Unchanged objects compare identical, though every file was rewritten.

pb-diff Compare Summary with orders.pbl from release 1.5 on the Old side and the orders.pbl folder of the same release converted to a PowerBuilder 2025 Solution on the New side. Every object is listed as unchanged.

Report what changed.

pb-diff produces reports and summaries in several formats (PDF, HTML, CSV, JSON, RTF and Markdown), from the desktop, the command line or your CI pipeline.

pb-diff producing a File Changes report of the w_order_entry comparison, which opens in a tab with the changed items and lines.

What pb-diff can compare.

Objects Any PowerBuilder export (.sr*), library entry or Solution source, with each change in its function, event, control or property.
Libraries .pbl, .pbd and libraries appended to .exe or .dll files, always opened read-only. Compiled objects are compared by metadata or bytes, never decompiled.
Folders and whole releases Libraries, exports and build files together, in any mix: a library against a folder of exports, or two application folders side by side.
PowerBuilder 2025 Solutions A Solution against another, or a classic .pbl against its migrated Solution. Verified with PowerBuilder 2025 R2.
DataWindows Bands, controls and every property, the database columns and the retrieve SQL.
Queries and pipelines SQL by clause: tables, columns, joins, conditions, grouping, ordering and arguments. Pipelines by source and destination columns.
Build files Workspaces (.pbw), targets (.pbt), Solutions and projects (.pbsln, .pbproj, .srj) and resource files (.pbr): targets, library lists, projects and settings. PowerGen .gen on a best-effort basis.
Three versions Yours, the base and theirs, for a three-way merge with conflicts listed by function, event or control.
Renamed objects Paired as one when you say so; a rename is never guessed.
Damaged libraries Checked block by block and reported, never repaired.
Other files XML/XAML, JavaScript and INI by structure; HTML and any other file as text.
Two pieces of text Pasted from the clipboard, or two lines side by side, down to the character.

Works with PowerBuilder 10 and later.

pb-diff compares the libraries and sources of PowerBuilder 10 and later, and reads those of PowerBuilder 5 to 9 on a best-effort basis. Merged sources import into PowerBuilder 19 and later. It runs on Windows 10 and 11, and on Windows Server 2016 and later.