I followed the steps as mentioned in the HANA sps5 guide to debug a sqlscript proc.
What the guide says is that any <dot> procedure file open at the time when the debug perspective is selected, can be used to set breakpoints and executed.
Now my question is shouldn't we be executing the call procedure statement to debug the execution of the procedure with input values rather than the declaration of the procedure.
I tried this approach though , but in the Debug window where I can see call stacks, I get a message "<terminated>xyz.PROCEDURE ".
I tried a sql trace and it looks like the execution of the procedure is as follows,
the below JSON executes the query in jmj\JMJPROC in debug mode i guess
## ERROR QUERY: cursor_140426255794688_c34804.execute(''' { CALL SYS.DEBUG('[{
"arguments": { },
"seq": 3,
"command": "init",
"type": "request"
}]',?) } ''') # con info [con-id 234804, APPLICATIONVERSION: 1.0.47.201212210450, APPLICATION: HDBStudio]
the below JSON executes the query with breakpoints set in jmj\JMJPROC
## ERROR QUERY: cursor_140426255756288_c34804.execute(''' { CALL SYS.DEBUG('[{
"arguments": { "breakpoints": [
{
"handle": 3,
"location": {
"resourceIdentifier": {
"name": "jmj\/JMJPROC",
"namespace": "_SYS_BIC"
},
"line": 3
},
"attributes": { },
"language": "sql",
"type": "line"
}
] },
"seq": 4,
"command": "setBreakpoints",
"type": "request"
}]',?) } ''') # con info [con-id 234804, tx-id 1310, user: schema:, APPLICATIONVERSION: 1.0.47.201212210450, APPLICATION: HDBStudio]
Could this be due to due to missing authorization ? But even SQL DEBUG privilege with EXECUTE doesnt resolve the issue . Please help.