SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Debugging Stored Procedures

Leveraging SQLScript in stored procedures, user-defined functions, and user-defined libraries.

Overview

🎓 intermediate 10 min. SAP HANAIntermediateSqlExpress Edition

You will learn

  • How to debug a procedure using the SQLScript debugger
Rich Heilman R Rich Heilman November 1, 2022
Created on September 5, 2016
Contributors

More from Rich Heilman

See all 20 tutorials by Rich Heilman →

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Tutorials: Anonymous Blocks

Steps

Intro

The debugging shown in this tutorial includes setting breakpoints, evaluating expressions and intermediate results.


Step 1 Start debugger

Go to the Database Explorer page and right-click on the procedure called get_po_header_data and choose Open for Debugging.

DBX
DBX

Make sure the configuration is set as shown here and click OK.

apply
apply

Step 2 Set breakpoints
+
Step 3 View debugger pane
+
Step 4 Use step over
+
Step 5 View expression editor
+
Step 6 View expressions
+
Step 7 Check output
+
Step 8 Resume execution
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Start debugger 2. Set breakpoints 3. View debugger pane 4. Use step over 5. View expression editor 6. View expressions 7. Check output 8. Resume execution
Next