If you want to debug DB2® SQL and SQL PL procedures or IDS SPL procedures in your C# or Visual Basic application, you first must enable SQL, SQL PL, and SPL debugging for the development project. You need to do this process only once for a given project. Enabling SQL, SQL PL, and SPL debugging for a project sets a project property that persists from session to session in Visual Studio.
In IDS SPL procedures, you can debug
only the SPL statements, not the SQL statements.
When you enable SQL, SQL PL, and SPL debugging in a development project, the IBM Unified Debugger must close and then reopen the CLR application that contains the project. After the project reopens, you must specify the data connection and, optionally, the port on which to run the debugger session manager. You must also change the settings of some standard Visual Studio project debug properties.
The add-ins, which is 32-bit application, does not support a 64-bit debugging process for console applications. On a 64-bit operating system, the default debug platform is Any CPU, which is a 64-bit debugging process. You must specify a 32-bit debug platform in the project properties.
Prerequisite: To enable IBM SQL, SQL PL, and SPL debugging in a CLR application, the application that contains the development project must be open in the Solution Explorer.
To enable SQL, SQL PL, and SPL debugging in a CLR application:
A message is displayed that the project must be closed and reopened.
All unsaved changes are saved, the project closes, and then reopens in the Solution Explorer.
The Project Designer opens.
The IBM Unified Debugger page is displayed.
If you leave the field blank, or specify the value 0
or default, the default port that is defined for the
server is used.
The Debug page of the Project Designer is displayed.
When you debug an application development project, you now can debug the SQL or SPL procedures in the application as well.
SQL, SQL PL, and SPL Procedure Debugging in CLR Applications | Debugging SQL, SQL PL, and SPL Procedures in CLR Applications | IBM Unified Debugger Page, Project Designer