DEBUG THE PROGRAM
Hi Friends,
Could u guide me how to set breakpoint and debug the module pool, function pool, Interface pool and class pool program ?
Thx in Adv.
bapibobby
Hi Bobby,
Create a TCODE fro module pool program. Place Breakpoint anywhere in the code n try to run the tcode.It takes u into the debug mode.
All the others function pool n so on are debugged just as u run report .
Keep a break point n try to debug it.
Or else use /h in tcode to debug it from starting.
Regards,
Priyanka.
Similar Messages
-
How to debug the program in background
hi
how to debug the program in backgroundHello 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 -
Debugging the program that will get triggered for a particular output type
Hi all,
I have one program,which will get triggered when a Sales order of type 'VOR' is created.Whenever 'VOR' order is created it will trigger the 'ZALT' output type.And this output type 'ZALT'has been configured to my program.This output type configuration has been set up by my functional consultant.
My problem is I created Sales order of type 'VOR'.But I want to debug my program,which has to be triggered because of that 'VOR' sales order type,which in turn triggers 'ZALT' output type and in turn triggers my program.
My problem is I created Sales order of type 'VOR' by keeping debugging point in my program.But it is not going to my program and simply displaying sales order has been saved.
So is the outtype has been configured properly?.Do I need to go to my functional consultant?Could anyone explain in this regard?
Rgds,
BalajiHi Balaji,
If possible, try to repeat the output in the output type messages screen of VA02 and change its dipatch time to '1'(Through further data). Now put the break point in the program assigned to output tye 'ZALT'(You can see this in the TNAPR table) and run the program RSNAST00 through SE38. The program will stop at the break point.
If its not possible to repeat the output and if you want to check it the first time the output type is processed, ask the functional consultant to change the dispatch time in the condition record that is being retrieved for proposing the output type to '1'. Now run RSNAST00. The program will stop at the breakpoint.
Thanks,
Vinay -
HELP TO DEBUG THE PROGRAM OF AGILENT6600X
Hello,
First let me simply introduce this program.
The horizental toggle switch is used to set the default value to the power supply.
The vertical slide switch is used to read the value from the power supply(after board boot up).
The phenomenon is when i run the vi, always pop up the indicate message"the 9v PS ID can not be recognized". The problem is why always the problem happens on the 9v PS.
I have to say this program is not so good, if anyone can give me some guidence, I'll be very appreciate. Thanks.
Attachments:
PS.vi 44 KBGood morning,
Without the Agilent drivers (vi's), I could not see much about the code. Do you only get this message with the 9V PS?
Have you tried communicating with the instrument using MAX (Measurement & Automation Explorer)? That should be the first step to make sure that communication can be achieved. You could try a basic query like " *IDN? " and see what it returns. It's under "Communicate With Instrument", when you look at the "Devices" list.
Also try opening the actual Agilent VI's and monitor what is being sent over the GPIB. Compare it with the others that work. You can copy the faulty command to MAX and communicate with the instrument using the command.
Hope this helps,
RayR -
i have write an java program that come out with this error, how to solve it?
postageApplet.java:5: postageApplet should be declared abstract; it does not
define itemStateChanged(java.awt.event.ItemEvent) in postageApplet
public class postageApplet extends Applet implements ItemListener,ActionListener
^
what does it mean by abstract here?You said the class implements ItemListener but you have not defined the methods for that interface. Abstract classes can have abstract methods, or methods that have a prototype but are not defined. If you made the class abstract it would compile because the methods for the interface would be considered abstract.
To fix the problem implement the methods for the interfaces you are using. -
Generally how does the ABAPer do debug the programs in real time environment, and how to check the the performance of the programs.
Hi,
there are few methods for the same..
one using a break point(stop button in editor),
using tcode /h or going to utilities - abap debugger.
performance you can check using tcode se30.
if you want to learn debugging for all the objects go through these links..
<b>and do reward all the helpful answers for all your questions</b>
ABAP DEBUGGING
http://help.sap.com/saphelp_webas620/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
Debug Program scheduled Background
Re: Debugging Report which is scheduled in background
regards,
pankaj singh -
App. Error - Click on OK to terminate the program Click CANCEL to debug ???
this is the wondow that pops up
Application Error
The exception Privileged instruction.
(0xc0000096) occurred in the application at location 0x1004ece0.
Click on OK to terminate the program
Click on CANCEL to debug the program
Anyone seen this window that pops up randomly??? The cancel button just freezes iTunes and the OK button just closes it immediately. Anything info on this would be amazing. I'm not sure if its my computer's fault or what.
Uninstalling and re-installing hasn't worked.
Thanks...Ok I saw on a previous post to look for Add-ins and plug ins but I checked to make sure and I do not have any.
The other window that comes up says iTunes has encountered a problem and needs to be closed immediately -
How can i debug a program attached with a Job schedule ?
Hi experts,
In a background job one program plus one variant is attached, now I don't have any authorization of SE38. I want to debug the program. How can it be possible?
Thanks in Advance,
AbhijitHi
GOTO SM51.
There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.
Depending on your version the menu option is in different places.
If you have the correct authorizations, a window pop will pop up, with your program in the debugger.
Regards,
Vishwa. -
HI HOW TO DEBUGGING A PROGRAM IN BACKGROUND
HI
HOW TO DEBUGG A PROGRAM IN BACK GROUNDGo to SM37 and check the spool there. You can find your
output there. If you want to debug the program then first put a
break point in your program after finishing of the execution of
the job, then select the job in SM37 and enter JDBG in
command prompt and press enter. It will go to debug mode. It
is equivivalent to /H which we will enter while debugging in
foreground -
Hi Experts,
I have submitted a job in background using submit via job. Is it possible to debug the program which i have called through submit via job?
Thanks
Harshad.Hi hrashad,
u can debug ur own job through sm37 then select ur job then type JDBG in comand line.
or
u can debug ur own active job through sm37 then select ur job then click capture: active job.
in menu baar (Job-> capture: active job).
Thanks & Regards
Rahul -
Dbx to debug JNI programs stops on SIGUSR2
Hello,
I am debugging a C program that uses the Java Virtual Machine throught the JNI interface.
When using dbx to debug the program, dbx keeps on stopping on SIGUSR2 and SIGSTOP signals that are delivered to the process. I would like to ignore those an concentrate on the code I am debugging. With gdb, I used "handle SIGUSR2 nostop" command to ignore signal handlers.
Could you please help me find a similar function in Dbx.
Thank you in advance
Marwan KhalilHello,
I am debugging a C program that uses the Java Virtual Machine throught the JNI interface.
When using dbx to debug the program, dbx keeps on stopping on SIGUSR2 and SIGSTOP signals that are delivered to the process. I would like to ignore those an concentrate on the code I am debugging. With gdb, I used "handle SIGUSR2 nostop" command to ignore signal handlers.
Could you please help me find a similar function in Dbx.
Thank you in advance
Marwan Khalil -
Debugging driver program for SAP SCrIPT
Hi,
I am using a z report for creating handling units.As soon as the handling units are created the spool is genearted for all the handling units and the spool requests are visible in SP01.However the print ouput is having some error.I want to debug the driver program.Fronm nace I found out the driver program and have placed break-point in the form routine Entry sapscript and also activated thhe debugger for te concerned SCript,but the debugger is not stopping .
Also I have checked the script name from the spool.
Kindly guide where is the problem and how to proceed.Any help will be acknowledged.
Regards,
AbhishekHI,
Write a infinite loop in the diver program before u call the open form or before the statement from where you want to debug.
set the infinite loop by this code.
data no type i value 1.
while no eq 1.
endwhile.
break-point.
Then after inserting this code activate and run the program, then run the transaction after runing the transaction ,
goto TCODE ->SM50 u will see list of program select the driver program then select program/session from menu then select program->debugging, then your debug will start from the infinite loop , then change to 2 , then u can debug the program.
Hope this helps.
Regards,
Madhukar Shetty -
How to debug the back ground job
Hi All,
I want to debug the program, but it is taking more time so iam running it in back ground, but i need to debug the program from some particular point....is there any other way to debug the program...
Means...to run the program in background upto particular point and later i need to run it in debug mode.
Please suggest.
Thanks & Regards,
HariHi,
You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X'.
Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER
You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.
Hope this helps u.
Thanks. -
How to debug a program exit in a Workflow ?
Hi experts,
How to debug a program exit in a workflow when the workflow is triggered ?
thanks in advance
regards
AshwinIn 4.6c I did this by creating a function module and a table (zsm50_debug). In the table are just two fields: User name (key), and a flag (yes/no).
The function module:
FUNCTION zsm50_debug.
*"*"Local interface:
*" IMPORTING
*" REFERENCE(Z_DEBUG_USER) LIKE SY-UNAME
DATA: z_exit,
z_debug.
CLEAR: z_debug.
DATA: starttime TYPE t,
currenttime TYPE t,
time_passed TYPE i.
starttime = sy-uzeit.
* Check if debugging is switched on
SELECT SINGLE debug FROM zsm50_debug
INTO z_debug
WHERE uname = z_debug_user.
* Debugging is switched on:
IF z_debug = 'X'.
* Not an endless loop, but it will continue after approx. 1 minute...
* Plenty of time to go to SM50 to debug the program and continue!
DO.
* Change the value of z_exit to 'X' to exit the loop an stay in
* debug mode.
IF z_exit = 'X'.
EXIT.
ENDIF.
* To prevent an endless loop (if the user forgot that debugging was
* switched on in ZSM50_DEBUG, time is measured to allow the program
* to continue after 2 minutes
GET TIME FIELD currenttime.
time_passed = currenttime - starttime.
IF time_passed > 120.
WRITE: / '!!!==========================================!!!'.
WRITE: / '!!!DEBUGGING STILL SWITCHED ON IN ZSM50_DEBUG!!!'.
WRITE: / '!!! Program was delayed by two minutes !!!'.
WRITE: / '!!!==========================================!!!'.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDFUNCTION.
This FM reads the table and checks if the flag is switched on. If so, it loops for two minutes. After that, it continues regardless. If not flagged, it continues immediately.
This way, you can debug any program that is running in the background.
In every method I program I add this FM right in the beginning. With authorization for SM50, I can then debug the program (in production it may be difficult to get the correct server, if there are more). -
Not able to debug z program attached to special funtion in processing routi
Hi,
I want to debug my z pogram. attached to special funtion in processing routine.but not able to debug But debugger is not passes through that z program if i passes through transaction vl02n.
Regards,
Ranu.Hi Sharma,
if the output type is triggered automatically and sheduled background and creating spool or sending mail.
then try this way.
Write the statemnet in your program to debug the program in Background.
data : w_flag type C.
do.
if w_flag = 'X'.
exit.
ENDIF.
enddo.
and execute the VL02n and go to t-code SM50 and select your program and got to menu >program->program> Debug
the the program stops in your Zprogram and make the w_flag to 'X' and continue debuggin zprogram.
Regards,
prabhudas
Maybe you are looking for
-
Which program is better for reducing noise in photos and increasing sharpness?
Which program is better for reducing noise in photos and increasing sharpness?
-
PSE 5 organizer converted to LR
Although there has been discussion about this, I can't find an answer. I am a pse 5 user and am thinking about buying lr. Can I convert my organizer to the LR organizer with minimal hassle? Am I better off keeping the pse5 organizer or better off usi
-
Crashing after 10.9.5 update
Almost every day for the last week or so, that is after I installed the 10.9.5 update, my Macbook pro 5,3 mid 2009 crashes. I am attaching the error message I get from Apple. I have repaired permissions. I think it might have started AFTER I switche
-
I want to search for two strings of text throughout numerous cells
I can get a formula to search an individual cell using this: =IFERROR((IF((SEARCH(String1,SearchString,1)+SEARCH("String2",SearchString,1))>0 ,"Yes","No")),"No") How can I search a bunch of cells at the same time? Thanks.
-
Passo 5: O WLC responds com uma mensagem Couple-Response. Uma seja Once complete, as AP and autenticação informaçãoes truck driver and Produzir chaves mensagens Cryptography for future control. O Então WLC or AP set (SSID, canais, configurações of ma