Debugger helps you monitor runtime behavior of your database objects and pinpoint logic errors. You can pause execution at any point, inspect database objects, and evaluate or modify variables directly within your script.
The dbForge Studio Debugger helps you perform several key tasks in debug mode:
Control code execution:
Manage breakpoints:
View execution results:
Before you run the Debugger, ensure the following requirements are met:
Note
The Debugger does not work with the Microsoft cloud services like Azure SQL Database.
For more information, see Configure the Debugger.
To access the Debugger, use the Debug menu or Debug toolbar. Debugger windows and dialogs display information about database objects and let you enter additional details.
To get Help for the dialog, press F1.
In the top menu, select Debug menu to access debugging commands.

When you start debugging, the Debug toolbar appears automatically, allowing you to manage the debugging process.

The table provides options from the Debug toolbar.
| Icon | Name | Description |
|---|---|---|
| Start | Starts the debugging process. | |
| Continue | Proceeds with the debugging process until it reaches the next breakpoint or the end of the debugging session. | |
| Execute Entire Script | Executes an entire script. | |
| Break All | Pauses the debugging process. | |
| Stop Debugging | Stops the debugging process. | |
| Restart | Restarts the debugging process. | |
| Step Into | Enters the function and pauses at the first executable line inside it. | |
| Step Over | Executes the entire function, then halts at the first line outside the function. The command can also be used to avoid stepping into functions. |
|
| Step Out | Runs the current function and stops the execution until the current function is returned or the breakpoint occurs. | |
| Call Stack | Opens the Call Stack pane. | |
| Breakpoints | Opens the Breakpoints pane. | |
| Watches | Opens the Watches pane. |
Note
It is recommended to debug Transact-SQL code on a test server, not a production one. Debugging sessions can be time-consuming, and any locks acquired during the session may be held for extended periods, potentially impacting performance or availability.
To access the Debugger, use the Debug menu or Debug toolbar. Debugger windows and dialogs display information about database objects and let you enter additional details.
To get Help for the dialog, press F1.
On the top menu, select Debug menu to access debugging commands.

When you start debugging, the Debug toolbar appears automatically, allowing you to manage the debugging process.

The table provides options from the Debug toolbar.
| Icon | Name | Description |
|---|---|---|
| Start | Starts the debugging process. | |
| Continue | Proceeds with the debugging process until it reaches the next breakpoint or the end of the debugging session. | |
| Execute Entire Script | Executes an entire script. | |
| Break All | Pauses the debugging process. | |
| Stop Debugging | Stops the debugging process. | |
| Restart | Restarts the debugging process. | |
| Step Into | Enters the function and pause at the first executable line inside it. | |
| Step Over | Executes the entire function, then halts at the first line outside the function. The command can also be used to avoid stepping into functions. |
|
| Step Out | Runs the current function and stops the execution until the current function is returned or the breakpoint occurs. | |
| Call Stack | Opens the Call Stack pane. | |
| Breakpoints | Opens the Breakpoints pane. | |
| Watches | Opens the Watches pane. |
Note
It is recommended to debug Transact-SQL code on a test server, not a production one. Debugging sessions can be time-consuming, and any locks acquired during the session may be held for extended periods, potentially impacting performance or availability.
dbForge Studio supports two window layouts:
Each layout keeps its state when you start or stop debugging, or when you exit and restart the Studio.
Note
The Watches and Call Stack windows are available only in the Debug layout.
The Watches pane lets you monitor the current values of variables or expressions during the debugging session.

The grid displays the following:
The grid can contain the following identifiers:
You can also right-click the grid and select the required option.
The table describes the shortcut menu options from the grid.
| Name | Description |
|---|---|
| Add Watch | Adds a watch. |
| Delete Watch | Deletes a watch. |
| Copy | Copies the watch to the clipboard. |
| Paste | Inserts the copied watch to the required place. |
| Select All | Selects all watches. |
| Clear All | Removes all watches. |
The Call Stack pane lists all active function or procedure calls. Each entry, or stack frame, shows the function name, its parameters, and local variables. The top frame indicates the function where execution is currently paused, and the bottom frame shows the initial entry point that began the call sequence.

The grid displays the following:
You can also right-click the grid and select the required option.
The table describes the shortcut menu options from the grid.
| Name | Description |
|---|---|
| Go To Source Code | Navigates you directly to the line of code in the source script where the selected stack frame is set. |
| Copy | Copies the stack frame to the clipboard. |