2007 Jun 14 9:40 AM
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.
2007 Jun 14 12:30 PM
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.).
2007 Jun 14 12:17 PM
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
2007 Jun 14 12:25 PM
Hi Pandu,
Debugging can be deactivated for the entire system. For this you'll have to speak to your BASIS consultant.
Regards
Anil Madhavan
2007 Jun 14 12:32 PM
Hi,
Is it not possible for diactivate debuging perticular program?
2007 Jun 14 12:40 PM
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.
2007 Jun 14 12:28 PM
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
2007 Jun 14 12:30 PM
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.).
2007 Jun 14 12:46 PM
2007 Jun 15 3:59 AM
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
2007 Jun 15 4:01 AM
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
2007 Jun 15 12:20 PM
Hi Donald,
Thanq u for giving me valuble suggestion. I had fulfilled my requirement with ur great suggestion.
Regards,
Pandu.
2007 Jun 15 12:47 PM
2007 Jun 14 12:47 PM
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