How to debug a program running in background ?

How do we debug a prorgram running in the background ?
Is BREAK-POINT statement is used for this or ne other method exists
I have gone thr the standard documentation help for BREAK-POINT Statement, but not getting it.
Regards,
Nitin

Hi Nitin, try to do this:
1. use the following code instead of break-point:
   data a type c.
   do.
     if a = 'X'.
       exit.
     endif.
   enddo.
2. while the program is running in background, launch transaction SM50.
3. select the program in the list and choose Program/Mode -> Program -> Debugging
4. at this point the program should stop in the infinite loop. to exit from the loop, set the variable a to 'X'
Best regards, Manuel

Similar Messages

  • New operating system..... How do I close programs running in background

    How do you close programs running in background with new op system?

    Sherylewyatt wrote:
    How do you close programs running in background with new op system?
    It's an often misunderstood topic.  The programs that are "running" (and where they are actually using data and battery) can be found in "Notifications" and "Background App Refresh."

  • How do I delete programs running in background on old I phone iOS 5

    How do delete programs running in background on old I phones

    On iOS 5 double-click home button, touch an hold on an app icon until a "-" appears. Touch this to remove the App.

  • How to make a program run in background?

    Is there any ways to make an invisible program with java? a program that is running in background but the user cannot see it and it's not in the Start bar and the user cannot close it.

    There are also 3rd party software that lets you install a java program as a service in winnt/2k/xp so that you can start/stop it from the service manager, doesnt even matter if the java program is gui based or not, as there are options (in win2k at least) in the service manager that allows the program to interact (think show gui) or not...one software called JNT comes to mind..
    Anyway, if you're using win98/me equivalent, then just use javaw.exe like suggested by previous posters.

  • How do I download mozzikla 3.5 ?? Mozzilla 3.6 takes up to much space and has a program running in background storing crashed files.

    how do I download mozzikla 3.5 ?? Mozzilla 3.6 takes up to much space and has a program running in background storing crashed files.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • How to turn off programs running in the background in the background on iPad

    how to turn off programs running in the background in the background on iPad

    Most apps do not run in the background on an iPad. Their stae is kept in memory so that when you start the app again it will load quickly at the location you last used it. But you can remove these apps from the Recently Used list. Here's how:
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app.
    Some apps do refresh in the background if you have that Setting turned on. You can control apps there individually or turn off Back Ground App Refresh completely in the Settings App.
    Settings > General > Background App Refresh

  • HOW DO I DELETE PROGRAMS RUNNING IN THE BACKGROUND OF MY IPHONE WITH SOFTWARE IOS7

    How do I delete programs running in the background now that I have upgraded my software to IOS7?

    http://www.apple.com/ios/whats-new/

  • HT201365 how to turn off programs running in the background.

    How to turn off programs running in the background withiOS7?

    I would just add that it is not necessary. The programs referred to are only the recently used programs, and are not "running in the background" with the sometimes exception of GPS apps and music apps. They are simply dormant in the memory. The operating system will remove these programs if the space is required.

  • HT4528 How do you close programs running in the background after you update to the ios7?

    How do you close programs running in the background after you update to the ios7?  It no longer works to tap the button twice

    double tap the home button, and swiipe upp on the app screenshot

  • How to debug the program in background

    hi
    how to debug the program in background

    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

  • 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
    Ashwin

    In 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).

  • How does a standalone program running in JDeveloper connects to Oracle

    Hi,
    Can anybody please answer me how does a standalone program running in JDeveloper10G is getting connected to Oracle ? Normally it should go and check the host address and DB service name in TNSNames.ora file and go ahead. With JDeveloper10 ever after changing the TNSNames.ora file name to some other name the program running in Jdeveloper is getting connected to database. Seems weird ? I was actually doing some testing with that. Anybody please tell me how does JDeveloper handles such situations...
    Regards
    CTR
    Edited by: user8325217 on Oct 9, 2008 2:54 PM

    Yes, it depends on the type of JDBC driver you are using. Oracle has two JDBC drivers for Java clients. The oci driver requires an installation of Oracle Client on each machine running the Java app, and has the potential to use the tnsnames.ora entries. The thin driver is pure Java, does not require Oracle Client, and therefore is not aware of tnsnames.ora files.
    You want to look in your code for the part that's establishing a connection to the db, and look at the URL, which will tell you the type of driver being used, for example "jdbc:oracle:thin" or "jdbc:oracle:ociX".
    You might want to check out the following FAQ on JDBC:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    Brian
    Product Manager, JDeveloper

  • How to Find Which Programs running in my Domain Computers

    How to Find Which Programs running in my Domain Computers.

    In addition, there are other third tools you can use. Here is a script from the TechNet Scripting Gallery:
    List All Installed Software
    Returns a list of all software installed on a computer, whether or not by Windows Installer. This script reads installed applications from the registry. (See Richard Mueller's comment on how to output it to a CSV file)
    http://gallery.technet.microsoft.com/scriptcenter/8035d5a9-dc92-436d-a60c-67d381da15a3/view/Discussions
    Of course that's just running it against one computer. There's also a script in the above link (scroll to the bottom) that will find installed software of a list of computers in a network and also detect the defined forbidden installed software, and
    another script that will uninstall that software remotely.
    Overall however, if you want to do this network wide with much a much easier method (although more complex to setup), I agree with using SCCM or Spiceworks. There is also Altiris, and a number of other third party solutions that you can use.
    Maybe if you can provide more specific information on the end result of the solution you are looking for, we can provide more specifics to help you.
    Ace Fekay
    MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

  • How to change which programs run at start up

    Hello,
    I am just trying to speed up and clean up my machine.  I would like to know how to control which programs run at start up.  Also any other suggestions on how to keep everything running smoothly and effifiently.  General maintenance type stuff.
    Thanks, Jason

    How to maintain a Mac
    1. Make redundant backups, keeping at least one off site at all times. One backup is not enough. Don’t back up your backups; make them independent of each other. Don’t rely completely on any single backup method, such as Time Machine.
    2. Keep your software up to date. In the Software Update preference pane, you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis. This is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” “extenders,” “cleaners,” “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” or "utilities." With very few exceptions, this kind of material is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.
    The free anti-malware application ClamXav is not crap, and although it’s not routinely needed, it may be useful in some environments, such as a mixed Mac-Windows enterprise network.
    4. Beware of trojans. A trojan is malicious software (“malware”) that the user is duped into installing voluntarily. Such attacks were rare on the Mac platform until recently, but are now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it — the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness — not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must be acquired directly from the developer. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from a web page without your having requested it should go straight into the Trash. A website that claims you have a “virus,” or that anything else is wrong with your computer, is rogue.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most users don't.
    5. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” “rebuilding the directory,” “running periodic scripts,” “deleting log files,” “scanning for viruses,” or “repairing permissions.” Such measures are for solving problems as they arise, not for maintenance.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • How to turn off apps running in background on ipad

    how to turn off apps running in background on iPad with ios7

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

Maybe you are looking for