Getting started
Install SQLTreeo T-SQL Debugger, connect to SQL Server or Azure SQL Database, pick a stored procedure and step through it one statement at a time.
SQLTreeo T-SQL Debugger is a Windows application that steps through the stored procedures and scalar functions of SQL Server and Azure SQL Database, one statement at a time. This page shows the first steps: install it, connect, pick a procedure and debug it.
Install
Download the installer from the downloads page. It needs Windows 10 or Windows 11, 64-bit, and no .NET installation. The installer updates the application itself when a new version is published. A portable zip and a single file also run without installing, but they do not update themselves.
Connect
At the first start the connection dialog opens. Enter the server, choose the authentication (Windows, SQL Server or Microsoft Entra ID), and press Test connection. The optional database field sets the database the connection starts in; leave it empty for the login’s default database. A connection that works is remembered and opens again at the next start.
The trial starts at the first start and lasts 30 days. A chip next to the connection shows the days left. See Licensing for what happens after the trial.
Pick a procedure and debug it
- In the Object Explorer on the left, find the procedure. Type in the filter box to narrow the list.
- Double-click the procedure, or select it and press Debug. Its code opens in a tab, and a call for it is written in the Batch tab.
- In the Batch tab, fill in the parameters of the call. The Runs in box shows the database the run starts in.
- Press Start (F5) to run to the first breakpoint or the end, or Into (F11) to stop at the first statement.
- While the run goes on, the yellow arrow moves through the code and the Variables pane follows it. Step with Into (F11), Over (F10) and Out (Shift+F11).
Picking another procedure replaces the tabs of the previous one, so the tabs only hold the session you are debugging. The Object Explorer also offers Open code, a SELECT TOP (100) of a table or view, and Refresh from its right-click menu.
Next steps
- Debug a stored procedure in SQL Server, one statement at a time: find a bug in a procedure with a wrong result, step by step.
- Debug a stored procedure on Azure SQL Database: sign in with Microsoft Entra ID and connect to the database.
- Breakpoints and watches: stop where you need to, and keep an eye on a few variables.
- Pause on an error, fix it and retry: what happens when a statement fails, and how to continue.
- Licensing: the trial, the license key and what the application sends.