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

Can i write some code in the Debugger

Former Member
0 Likes
5,414

Dear,

Can we write some code at the time of debugging.

For ex. In Production my code is c = a + b.

now i want c = a - b.

<Modified subject line>

Moderator Message: Please use more descriptive subject lines in future.

Edited by: Suhas Saha on Nov 17, 2011 12:27 PM

7 REPLIES 7
Read only

former_member222709
Contributor
0 Likes
2,329

Hi Anuj,

You cannot add/modify your code lines at the time of debugging, but, the following points can be helpful:

1. In the New Debugger, you have an option of opening your Source code. You can use this to add/change code lines. But, this will be effective only when you activate your code and start a new de-bugging session.

2. While de-bugging you can change the value of the variable under consideration and verify the required output.

Regards,

Pranav.

Read only

0 Likes
2,329

Dear Pranav,

If i activate my program from debuger then my org. code will also change?

Read only

0 Likes
2,329

Hi Anuj,

First, even I would like to stress the point mentioned above by Suhas. No matter how critical the issue is & even if you have these rights in Production, do NOT change the values in Production system. NOT RECOMMENDED AT ALL.

About your question of activating from the debugger:

The De-bugger only opens the source code in a New Window. Till you execute the existing code or activate it from the ABAP EDITOR, your code remains the same. As you are in Production you will have to trnasport the changes after activating the code with the changes.

Regards,

Pranav.

Read only

deepak_dhamat
Active Contributor
0 Likes
2,329

Hi,

SAP has to think about it / POssible or NOT ?

if they have provided ... i am also keeping an eye on this thread .

regards

Deepak.

Read only

Former Member
0 Likes
2,329

HI Anuj,

You cannot the change the code while debugging, BUt do have an option for changing the values for the available code.

Regards,

Ahamed.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,329

In Production my code is c = a + b.

now i want c = a - b.

In PROD? No way!! Don't think even the ignorant of managers will provide you the authority modify runtime values while debugging in PROD

Anyway back to your question, i think some functionality has been incorporated in the latest debugger(NW7.0 EhP2). I'll check the blog & get back to you.

BR,

Suhas

Read only

0 Likes
2,329

Hello Suhas,

If you have come across this functionality with even a new debugger, can you please update it here.

Thank you.