Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue debuging an AMDP

0 Likes
2,513

I'm on HANA SPS7 and Netweaver 7.4 SP 7.

Did everything according to the tutorial

Granted the debug/execution authorization to the debug user, made the debug configuration and set the breakpoints in the corresponding catalog object.

But when I run the ABAP report (that calls my AMDP), the execution doesn't stop at my breakpoints.

I was able to step-into from my ABAP report method call to the first line of the AMDP catalog object, but I can't see my breakpoints in the debug perspective. And as stepping inside the AMDPs are not supported yet, I can't really debug it.

Am I doing something wrong here?

Please help.

10 REPLIES 10
Read only

jasmin_gruschke
Product and Topic Expert
Product and Topic Expert
0 Likes
1,817

Hi,
the break point view shows the check mark icons at the procedure break points. So it seems that you already surpassed these break points. Can you restart the SQL Script debugger and try again?
Cheers,
  Jasmin

Read only

0 Likes
1,817

Hi Jasmin,

As you can see on my first screen shot, that check mark on the breakpoint comes even before I start the debugger. Am I doing something wrong?

Anyway, I've done this more than few times now, but the result's the same. It never stops on the breakpoints

Thanks,

Jay

Read only

0 Likes
1,817

Hi Jay,
I just checked my system and had a similar observation. It gave me an exception, that there had been "on-the-fly" compilations, don't know if the same thing happened in your system.
Do you have an option (in the debug configuration) to compile "Procedures with breakpoints"? This option handles, which procedures are compiled in debug mode. But I'm not sure whether this option is already available in HANA SPS7.

IMHO, your breakpoint is not hit as it is "removed" by the optimizer and hence not accessible in the debug session.

One other question, can you reproduce the debugging shown in the video/document (http://scn.sap.com/docs/DOC-51790)?

Cheers,
  Jasmin

Read only

0 Likes
1,817

Hi Jasmin,

You can see my debug configuration on the screenshots. Again I tried using both options,

"All procedures on the call stack" & "Procedures with breakpoints", and no luck.

And why do you think the optimizer is removing the breakpoints? 😐

Yes I followed pretty much every step on your tutorial;

Read only

0 Likes
1,817

Hi Jay,
not saying, that your breakpoints are "removed by the optimizer", rather the coding might be optimized, hence the breakpoints are lost... If that's the case the option "Procedures with breakpoints" in the "Advanced" tab of your Debugger Configuration might help.
Please give it a try, use this option, restart the debugging (and cross your fingers ;-)).
Cheers,
  Jasmin

Read only

0 Likes
1,817

Hi Jasmin,

As I've mentioned earlier, I tried both options on the advance tab of the debug configuration;

"All procedures on the call stack" & "Procedures with breakpoints", and had no luck.

Thanks,

Jay

Read only

0 Likes
1,817

Hi Jasmin,

Think I know where the problem is, but without a solution

So I tried just debugging the procedure itself, following this nice blog by Rich Heilman.

Then got this "Source not found." error as many other people.

Went through the posts under your blog, and the following, but non them gives a proper answer.

Read only

0 Likes
1,817

Hi Jay,

I have gone through same issue, just i have reinstalled HANA studio side by side i have checked in different system also and it worked.

-Amol

Read only

0 Likes
1,817

Thanks much for this reply Amol.

So just reinstalling the studio solved the issue?

Or you did something else?
And which studio version you're having and which HANA SPS level?

Thanks,

Jay

Read only

0 Likes
1,817

Hi Jay,

Yes I have reinstalled studio and it started working.

I am suggesting you if reinstalling studio doesn't work then check on differnt machine.

I was on SP8.

-Amol S