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

Debug Issue

Former Member
0 Likes
1,215

Hi Experts,

I need to Disable the debug for program.Even if put the break points in the program,

program will not execute in debug mode please give me your valuable suggestions.

Regards,

Pandu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,185

1. hmmm do you want to deactivate Debugging? 2. or are you kinda stunned because you want to debug a program, put a Break-point in it and still it doesnt stop?

if it´s no.2, then you are facing the Problem that the routine you wish to Debug is beeing processed during background task (update Task).

Then you should switch on Update debugging and System debugging (works when you are in your debugger, so better press use tcode /h first to switch those things on.).

12 REPLIES 12
Read only

former_member189059
Active Contributor
0 Likes
1,185

I'm not sure if totally disabling it is possible, but as soon as you reach the first breakpoint in a program you can go to Debugging -> Debugging Off to let the program run to the end non-stop

Read only

Former Member
0 Likes
1,185

Hi Pandu,

Debugging can be deactivated for the entire system. For this you'll have to speak to your BASIS consultant.

Regards

Anil Madhavan

Read only

0 Likes
1,185

Hi,

Is it not possible for diactivate debuging perticular program?

Read only

0 Likes
1,185

no it is NOT possible. only thing what is possble is to give only users which DONT have debug permission the authorization to your program.

Read only

Former Member
0 Likes
1,185

Hi,

I don't think that is possible at that level, of course, you can turn this off system wide, by using authorizations. So you can make it that non-developers can not debug.

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
1,186

1. hmmm do you want to deactivate Debugging? 2. or are you kinda stunned because you want to debug a program, put a Break-point in it and still it doesnt stop?

if it´s no.2, then you are facing the Problem that the routine you wish to Debug is beeing processed during background task (update Task).

Then you should switch on Update debugging and System debugging (works when you are in your debugger, so better press use tcode /h first to switch those things on.).

Read only

0 Likes
1,185

Hi,

i want disable debugging for my z program.

Read only

0 Likes
1,185

Hello,

Im not sure of your exact requirement, but if u want to hide your source code, you can use this program. It wil ensure that nobody can see its source code

REPORT ZHIDERPGM.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE lv_frttl.
  PARAMETERS: program LIKE sy-repid.
SELECTION-SCREEN END OF BLOCK b1.

DATA: gt_code(255)  TYPE c OCCURS 0,
      gv_code      LIKE LINE OF gt_code,
      gt_code2(255) TYPE c OCCURS 0.

INITIALIZATION.
* sets the value for the title of the parameters block
  lv_frttl = 'Parameter'.

START-OF-SELECTION.

  READ REPORT program INTO gt_code.

  APPEND '*@#@@[SAP]' TO gt_code2.
  LOOP AT gt_code INTO gv_code.
    APPEND gv_code TO gt_code2.
  ENDLOOP.

  INSERT REPORT program FROM gt_code2.

* print unhidden source code for backup issues
  LOOP AT gt_code INTO gv_code.
    WRITE: / gv_code.
  ENDLOOP. "LOOP AT gt_code INTO gv_code

Read only

0 Likes
1,185

A couple of more options..

1. Run the program in background mode if possible, that will skip through all the breakpoints

2. Put hard break points (such as break developer) so that it will reach the breakpoints only with your ID

Read only

0 Likes
1,185

Hi Donald,

Thanq u for giving me valuble suggestion. I had fulfilled my requirement with ur great suggestion.

Regards,

Pandu.

Read only

0 Likes
1,185

Glad to help

Don't forget to reward points

Read only

Former Member
0 Likes
1,185

it can be diabled.

there is authorisation object for debugging of all the user roles ...

the basis can do it ... giving Authorisation for debuging for 1 hour , 1day , for some dates ..etc...

ask basis to switch of the debug ... so that if user uses /h it Wont work ...

Girish