|
The DBDK Visual C++ Add-In is a toolbar that appears in Microsoft Visual C++ after you install DBDK. The add-in aids you in debugging DataBlade modules in the following ways:
The add-in toolbar contains seven buttons. To see the name of each command, position the mouse pointer over the button. Figure 10-1 shows the add-in toolbar.
The primary add-in command is the Debug DataBlade Module command; it completes all the tasks necessary to bring your DataBlade module to the first debugging breakpoint. When you use the Debug DataBlade Module command to start debugging, the IfxQuery tool is launched from within Visual C++ when an SQL unit test file is the active window.
If you have a DataBlade module project open in Visual C++ and click the Debug DataBlade Module button, the Debug DataBlade Module command performs the following steps:
Important: The database server typically runs as a Windows NT service; you can start and stop it using the Services dialog box in the Control Panel. However, when the add-in starts the database server attached to the debugger, it does not run as a service and the Services dialog box does not show it running. If you attempt to start or stop the database server using the Services dialog box while it is attached to the debugger, you receive an error.
If the active window when you execute the Debug DataBlade Module command is an SQL file, the Debug DataBlade Module command launches IfxQuery, which performs the following additional tasks:
If the active window when you execute the Debug DataBlade Module command is not an SQL file, you can execute SQL queries using another SQL query tool, such as SQL Editor. However, you must first explicitly register the DataBlade module by clicking the add-in Register DataBlade Module button or by using BladeManager (see the DataBlade Module Installation and Registration Guide for instructions). In addition, the database you specified in the Configure DBDK Visual C++ Add-In dialog box must exist.
The following table lists the other add-in command buttons, in addition to the Debug DataBlade Module command, and the tasks they complete.
Important: Before you can run the Register DataBlade Module command, you must install the DataBlade module by using the Upload DataBlade Module and Upload DataBlade SQL Scripts commands, and the database you specified in the Configure DBDK Visual C++ Add-In dialog box must exist.