# I am unable to Inspect/Capture Rogue Wave Stingray Objective Grid (C++) Controls in Leapwork

**Description:**  
During automation of **Rogue Wave Stingray Objective Grid (Visual C++)** controls, users may see that the application controls cannot be inspected/captured using Desktop UI blocks in Leapwork.

Leapwork can help users to automate Visual C++ applications with Rogue Wave Stingray Objective Grid (C++) controls, however, this requires that the application that needs to be tested must be compiled with Debug information.

The Release configurations of the Objective Grid library usually do not have the debug information required to allow Leapwork to identify elements. So, if a user is about to test a Release configuration of a Visual C++ application with Objective Grid (C++) controls, the application developer would be required to rebuild the Objective Grid library to generate the necessary debug information.

**Resolution:**  
This can be followed using the steps outlined below:

Note: These steps need to be only followed for the case of testing Objective Grid (C++) controls in Release configurations of Visual C++ applications. Testing Debug configurations do not require the following setup.

1. From the **Start** menu, launch **Rogue Wave | Stingray Studio | Objective Grid | Grid Build Wizard**. Follow the instructions in the installation wizard to customize the Objective Grid library to your requirements.

Upon completing the necessary steps, the wizard will generate a **makefile** for creating the Objective Grid library.

2. Inside of the **_\Src\Grid\BkEndMak_** folder, locate the **makefile** named **_bldback_ NN _.mak_**, where **_NN_** denotes the Microsoft Visual Studio version used to develop the tested application. For example, the makefile to be utilized with Visual Studio 2010 (v. 10.0) is **_mak_**.
3. Open the **makefile** in a text editor.
4. Locate all the lines containing the below text:

**RELDBG_CPP=/D "NDEBUG" /O1**

Replace them with the below text:

**RELDBG_CPP=/D "NDEBUG" /O1 /Zi /Fd _Path_Name_ >.pdb**

The **/Zi** parameter would instruct the compiler to create debug information for the ObjectiveGrid library in _Release_ configurations.

The **/Fd** parameter specifies the name of the **.pdb** file to create.

5. Locate the line containing the below text:

**LINK32_DEBUG_FLAG=**

Replace it with:

**LINK32_DEBUG_FLAG=/debug**

6. Save the recent changes made to the **makefile**.
7. Proceed to rebuild the Objective Grid library using the modified **makefile**.

Once the application has been rebuilt, Leapwork should be able to inspect and capture elements in the application.

For any clarification, please contact our [Priority Support](mailto:prioritysupport@leapwork.com).
