Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Week 3 Unit 5: Using the

SQLScript Debugger
Using the SQLScript Debugger
The Debug Perspective

A dedicated Eclipse
perspective is provided for
debugging activities

2013 SAP AG. All rights reserved. Public 2


Using the SQLScript Debugger
The Debug Screen

Debug
Watch
Session

Code

2013 SAP AG. All rights reserved. Public 3


Using the SQLScript Debugger
Debugging Privileges

Five steps are required to assign the debug privileges:

1. Go to the Navigator view in the SAP HANA Development perspective and


choose Security > Users.

2. Double-click your user ID. Your system privilege information appears.


Choose the SQL Privileges tab.

3. Select the _SYS_BIC schema and select all of the privileges.

4. Select the DEBUG (SYS) procedure and select the EXECUTE privilege.

5. Choose the Deploy button (F8).

2013 SAP AG. All rights reserved. Public 4


Using the SQLScript Debugger
The Debug Perspective

To debug a procedure in the


SAP HANA SQLScript
debugger, perform the
following steps:
1. Open the Debug perspective in
the SAP HANA studio and
select the procedure you want
to debug by choosing the
relevant tab in the Editor view.

2. Double-click the left vertical


ruler to add breakpoints to your
procedure. You can see a list of
all of the breakpoints in the
Breakpoints view.

2013 SAP AG. All rights reserved. Public 5


Using the SQLScript Debugger
The Debug Perspective

2013 SAP AG. All rights reserved. Public 6


Using the SQLScript Debugger
DEBUG Configuration

To create a debug session you


must first create a debug
configuration:
Choose
Select Debug Configurations.... The
Debug Configurations wizard
appears.
Double-click SQLScript Procedure,
enter a name, choose Apply, and
choose Close.

2013 SAP AG. All rights reserved. Public 7


Using the SQLScript Debugger
Variables

Debug execution
stops at the chosen
breakpoint.

On the Variables
tab, you see the
current values of all
the defined variables.

2013 SAP AG. All rights reserved. Public 8


Using the SQLScript Debugger
Data Preview

Right-click LT_PRODUCT

Choose Open Data Preview to


display selected data

2013 SAP AG. All rights reserved. Public 9


Thank you

Contact information:

open@sap.com
2013 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

National product specifications may vary.

These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or
warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group
products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing
herein should be construed as constituting an additional warranty.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in
Germany and other countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

2013 SAP AG. All rights reserved. Public

You might also like