Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Multiple issues regarding debugging of .hdbprocedure

$
0
0

Hi folks!

 

I am having some strange problems following this guide New SQLScript Features in SAP HANA 1.0 SPS7

 

First, when building the role like below (where 'myPackage' is the package, 'Roles' is a folder and 'Debugger' is the role name):

 

During activation of the role an error is not thrown but something is seems to be wrong:

What is wrong with the roles as defined above?

 

According to the instructions in the mouse-over message on the first line

'role myPackage.Roles::Debugger'

should be

'role myPackage.Roles::REPO_PACKAGE_ROOT'

 

Why is that? This makes no sense to me. Can somebody explain pls?

 

Second, according to the guidline in the blog the right syntax is:

  sql object <my_package>:<procedure_name>.hdbprocedure: DEBUG, EXECUTE;

 

Unfortunately this does not seem to work and throws this error during activation

Only this syntax works:

  catalog sql object <my_package>:<procedure_name>: DEBUG, EXECUTE;

 

Which is the right syntax?

 

Third, when actually attempting to debug the two procedures named in the role above

     'perform_hierarchy_aggr_algorithm' and

     'perform_hierarchy_aggregation'

 

the debugger only stops at breakpoints in procedure

     'perform_hierarchy_aggr_algorithm'

 

the breakpoints in 'perform_hierarchy_aggregation' are ignored and appear as if broken after the debug session

 

Both procedures have been created with the same user in the same schema etc. From within 'perform_hierarchy_aggr_algorithm' a call to

'perform_hierarchy_aggr_algorithm' is performed. If I remove the call to 'perform_hierarchy_aggr_algorithm' then the debugger stops ath the breakpoints in 'perform_hierarchy_aggr_algorithm'.

 

Is there an explanation for this?

 

We are on HANA SP8 rev 81.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>