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

Debugging

Former Member
0 Likes
1,127

Hi All,

I called one Method in my program. If I put a break point at method in my program, control is not going inside the method even i am using F5.

Could any body help me.

Regards,

Sai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,095

Hi,

Try to debug with any of the following method.

<b>1.</b> Before executing program, enter '/h' command. ( you enter this command where you enter transaction code). This trun the debugger on. Now as soon as you execute your program (F8), it will start debugging.

<b>2.</b> Put a statement BREAP-POINT or BREAK uname ( here uname is your user id with which you login into SAP ). Put this statement at the place from where you want to start debugging. Once you do this and execute your program, it will stop at this statement. In your case you can put this statement before your method and inside methdo.

<b>3.</b> Go to SE38/SE24 and display your code. Now hit breakpoint button ( the button with STOP sign or Ctrl + Shift + F12 ). This will set the break-point on the very first line of your souce code. When you will execute your report, it will start debugger from very first line. Do this in both your program and inside code of your debugger.

Also, when you reach at a point of calling a method, trun on the system debuggin ( command '/hs' or in the "setting tab" select the box 'system debugging' ) and see if it goes into your code.

Let me know if you still have a problem.

Regards,

RS

9 REPLIES 9
Read only

Former Member
0 Likes
1,095

Hi!

Try to write the following command before the method call:

BREAK-POINT.

You might try to write the following:

BREAK username.

Regards

Tamá

Read only

Former Member
0 Likes
1,095
Read only

Former Member
0 Likes
1,095

Hi Thomas,

I put Dynamic brek point.

Regards,

Sai

Read only

Former Member
0 Likes
1,095

use /H & goto Debugging mode.

now in the Menu bar goto Breakpoints->Breakpoint At

Here u can see

1.Statement

2.Subroutine

3.Function Module

4.Methods etc...

Now click the method & specify ur method name to breakpoint

Now a message will be displayed that break-point is set.

Read only

Former Member
0 Likes
1,095

Hi chendrasekhar,

Thank you,

That way we can put break point at all methods.But at my break point program is stopping, but control is not going inside the method, insted directly going to sy-subrc checking in my program, which i have written after calling the method.

Regards,

Sai

Read only

Former Member
0 Likes
1,095

Write a endless loop before your method. In SM50 process overview select your process id, in the menu go to Program/session and select debugging.

This will stop at your endless loop.

Thanks,

Santosh

Read only

Former Member
0 Likes
1,096

Hi,

Try to debug with any of the following method.

<b>1.</b> Before executing program, enter '/h' command. ( you enter this command where you enter transaction code). This trun the debugger on. Now as soon as you execute your program (F8), it will start debugging.

<b>2.</b> Put a statement BREAP-POINT or BREAK uname ( here uname is your user id with which you login into SAP ). Put this statement at the place from where you want to start debugging. Once you do this and execute your program, it will stop at this statement. In your case you can put this statement before your method and inside methdo.

<b>3.</b> Go to SE38/SE24 and display your code. Now hit breakpoint button ( the button with STOP sign or Ctrl + Shift + F12 ). This will set the break-point on the very first line of your souce code. When you will execute your report, it will start debugger from very first line. Do this in both your program and inside code of your debugger.

Also, when you reach at a point of calling a method, trun on the system debuggin ( command '/hs' or in the "setting tab" select the box 'system debugging' ) and see if it goes into your code.

Let me know if you still have a problem.

Regards,

RS

Read only

Former Member
0 Likes
1,095

HI sai,

You need to put the break point in the Debuging only, while doing the Debugging, put a break point at Method,

While debugging, click on the Break Point --> Break Point at --> then give your method.

Regards

Sudheer

Read only

Former Member
0 Likes
1,095

Hi all,

Thanks U very much for ur support, Issue Resolved.

After reaching the break point at method i entered " command '/hs' ".

Then going inside the method ( Ref: RS poting).

Thnx RS.

Regards,

Sai