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

how to debug the program in background

Former Member
0 Likes
1,838

hi

how to debug the program in background

8 REPLIES 8
Read only

Former Member
0 Likes
914

Start your program to execute in background.

Then go SM50 and choose your program and option for

Debugging ..

Program/Mode --> Program --> Debugging

Read only

Former Member
0 Likes
914

Hi,

You can select the option to debug in background. The remaining approach remains the same.

<REMOVED BY MODERATOR>

Regards,

Mansi.

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:18 PM

Read only

Former Member
0 Likes
914

Hi,

Read only

Former Member
0 Likes
914

Hi,

When u execute the program u can selct the debugging option where it will

we have an option of debugging in Back ground...try it out

Regards.

Read only

Former Member
0 Likes
914

Hi,

Have you ever been in a situation where you want to debug a program but the darn thing runs in background? Here is a tip that will solve all your background debugging problems. There's only one condition: You have to be able to edit the coding. Enter an endless loop at the point you want to start debugging and start the program. Go to SM50. Wait till your process will seem to be "hanging". In the menu goto Program -> debugging. You will get into your program at the code you just entered. Change variable w_flag = 'X'.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
914

Hi,

After scheduling in Background.

Goto SM37.

Check the checkbox against the program u want to debug.

After checkbox is checked.

In command type TCode 'JDBG' and take enter.

Then u can start debugging u r program.

Hope this will helps.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:19 PM

Read only

Former Member
0 Likes
914

Hi Naresh,

you can debug the background job either two way..

1 if the job is finished then goto se37 select the line which u want to debug type JDBG on t-code bar then enter u will go into debugger..

2. if the job is running state then goto SM50 then select your job then goto program and debugging u will go into debugging mode...

<REMOVED BY MODERATOR>

Thanks Amit.

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:19 PM

Read only

0 Likes
914

Hello everyone,

I often debug my programs via the sm50 transaction and it works very well (especially when you put the dummy loop ^ - ^ ). However we are confronted to a major problem when more than one user tries to debug. We get a message saying that the maximum number of users in the debugging mode has been reached!! Thus we each have to wait for our turn to debug our program. It's a real pain.

We've searched for a parameter to configure the number of users for the debugging mode but in vain

Has anyone else had this kind of problem? If yes, what do I need to do to correct it?

Any suggestion would be helpful as I am new to BW.

Thank you beforehand.

Regards,

Dimple