28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.2 Debugging SQLScript<br />

The <strong>SAP</strong> <strong>HANA</strong> SQLScript debugger allows you to debug and analyze procedures. In a debug session, your<br />

procedures will be executed in a serial mode, not in parallel (not-optimized). This allows you to test the<br />

correctness of the procedure logic and is not for evaluating the performance.<br />

Before you begin using the <strong>SAP</strong> <strong>HANA</strong> SQLScript debugger, you must activate your procedures and they must<br />

belong to a project on your local work station. For more information, see Editing SQLScript.<br />

To debug a procedure in the <strong>SAP</strong> <strong>HANA</strong> SQLScript debugger, perform the following steps:<br />

1. Open the Debug perspective in the <strong>SAP</strong> <strong>HANA</strong> studio and select the procedure you want to debug by clicking<br />

on the relevant tab in the Editor view.<br />

2. Double-click on the left vertical ruler to add breakpoints to your procedure. You can see a list of all of the<br />

breakpoints in the Breakpoints view.<br />

From the Breakpoints view, you can:<br />

○ Deselect specific breakpoints or skip all of them.<br />

○ Delete a specific breakpoint or delete all.<br />

○ Double-click on a breakpoint to see which line it belongs to in the Editor view.<br />

○ See the status of the breakpoint:<br />

○ Pending<br />

○ Valid<br />

○ Invalid<br />

3. To create a debug session you must first create a debug configuration. Choose and select Debug<br />

Configurations.... The Debug Configurations wizard will appear.<br />

Note: The current debug configuration allows you to debug any stored procedure that is opened in the<br />

editor. Therefore, you do not have to create a new debug configuration for every procedure you want<br />

to debug.<br />

4. Double-click SQLScript Procedure, enter a name, choose Apply, and choose Close.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Developing Procedures<br />

Note: If you want to start debugging your procedure, choose Apply and choose Debug.<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 161

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!