How can I debug Scheduler Task?

Hallo,
I'm developing a scheduler task. I'd like to debug it. I tried it with NWDS debugger. I ran debugger before the scheduler task had started, but it didn't stop on my breakpoint. I copy my code to regular dynpage and debugging worked, but there is something, what I can't debug this way (state of task depeds on time).
Is possible to debug scheduler task directly?
Thanks in advance for your responces,
Josef Motl

Hi, Josef,
there is nothing specific that prevents scheduler tasks from being debugged. I could think of two possible reasons for your problems.
First, the IDE or the VM don't seem to like setting breakpoints on some kinds of code lines, for example while conditions or (even initializing) field declarations, although the IDE does not complain about you doing that. In those cases, it helps to set the breakpoint on the nearest 'normal' code line, best are self-contained statements like assignments or method calls.
Second, scheduler tasks are of course executed in their own threads. Sometimes, for example if you at the same time debug some other code, the suspended thread executing the task won't get active in the debugger so you have to look for suspended threads in the thread list and select the one you're interested in explicitly.
One of these two options always enabled me to debug scheduled tasks, so I hope this is going to help you, too.
Cheers
Heiko

Similar Messages

  • How can I Backup scheduled tasks in ARD?

    Hi,
    I run a number of scheduled tasks throughout the day and I am wondering how I copy these so that I can protect them?
    Thanks.
    Message was edited by: Host <to clarify Subject>

    Saved tasks are in the com.apple.RemoteDesktop.plist file. Back that up and you should be fine.
    Regards.

  • How can I debug a routine created in Deletion of similar requests?

    Hello Experts,
    I need some help from you. I need to delete overlapping requests and the common
    settings you can set are not suitable, so I decided to write my own ABAP routine.
    But how can I debug a routine, which is implemented in the deletion of similar requests?
    Hope you can help me.
    Cheers
    Daniel Weilbacher

    Please go to the routine code..
    In the menu options..u will find an option for breakpoint--set..
    The line where breakpoint is set will get highlighted and u will also see a STOP symbol..
    then come out of routine..and then run the data load..
    this ABAP routine for overlapping request deletion runs before the scheduled data load..
    the run shud stop at the set breakpoint and show the routine code..in debugger mode..
    cheers,
    Vishvesh

  • How can we Debug the workflow?

    Hi,
    How can we debug the workflow?
    Please help  me on debugging the workflow in step by step procedure?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi,
    If you want to set breakpoints in method which is used in workflow task then it is possible
    till ECC5 am afraid about ECC6
    you can see the graphical view of workflow through transactions said by Kalpesh
    you can also use swwl (delete workflow) for viewing the container elements of the workflow.
    SWI2_ADM1:Workitem without agents
    SWI2_DIAG:Workflow with error
    these transactions are also helpful
    Thanks & Regards
    Hari Sankar M

  • How can I delete the task bar in iOS7

    How can I delete the task bar in iOS7

    Stop Task Bar (Control Center) from popping up?
    Settings>Control Center>Access Within Apps

  • How can i have my tasks in order by date like outlook on my iphone 4

    how can i have my tasks in order by date like outlook on my iphone 4

    Use a task management app that sorts by date? There are lots of options in the App Store.

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • How can I debug a sequence that has a subsequence is running in a separate thread?

    Hi,
    How can I debug a sequence that has a subsequence is running in a separate thread?
    I have to have a continues check for a  digital in signal to be able to terminate the sequence if a physical button is pushed.
    This is running in a separate thread, but this way I cannot debug the main sequence.
    Is there any workaround for this?
    Thanks,
    Andras

    This KB might help you:
    http://digital.ni.com/public.nsf/websearch/46D1E157756C37E686256CED0075E156?OpenDocument
    Let me know if this does not help.
    Allen P.
    NI

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    Hi jgallu7382,
    The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
    I hope that answers your questions.
    Best,
    Sara

  • HT4970 How can I share a Task list in Reminders?

    How can I share a Task list in Reminders?

    First you can share Task List from Mac Reminder app or from icloud.com (Reminders app) (needs to login under your apple id).
    Then you should login to icloud.com under apple id of acceptor for accepting inviting of your Task List.
    That's all.

  • How can I debug webdynpro java application?

    hi,
    How can I debug webdynpro java application?
    Thanks

    Check this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56
    Also check this sdn thread Re: DeBugginng The WebDynPro Application particularly shailesh kumar posting
    /padmanaban
    Edited by: Padmanaban on Sep 26, 2008 1:55 AM

  • I have added a ADD-ONE like smart digg I want to debug this ADD-ONE. So plz help me how can i debug this.

    I wants to debug and ADD-ONE plz help me how can i debug the ADD-ONE.

    That's correct - you can't add it to another controller.
    From the View Controller Catalog for iOS:
    A split view controller must always be the root of any interface you create. In other words, you must always install the view from aUISplitViewController object as the root view of your application’s window. The panes of your split view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally.
    -=-
    Ken

  • How can I run all tasks in sequence container in sequence instead parllel

    Hi,
    I Have a foreach loop container. in that container having multiple execute process tasks. when I am executing the package all tasks are running parallel instead of sequential.
    so please kindly help me, how can I run the tasks sequential?
    Thanks

    As Sorna already wrote, connect the Tasks with a precedence constraint = green arrow, then they will be executed one by one.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How can we debug an SRM workflow problem?

    Q: How can we debug an SRM workflow problem?

    Hi,
    In SRM system using transaction SWI6 you can troubleshoot the workflow process.
    if you are using N step badi in the workflow process, we can debug the badi BBP_WFL_APPROV_BADI
    method GET_REMAING_APPROVERS
    if required please take a help of Abap consultant to debug...
    Thanks & Regards,
    prasad.s

Maybe you are looking for

  • How do I get the U2 album off my iTunes account?

    HHow do I get the U2 album off my iTunes music

  • Red Border on opening Apps?

    Hi, For example, opening the "Settings" from the "Home" screen, I briefly  see a red border around the edge if the display area. It is about 2-3mm wide in all four edges, and is only there for about a second. Is it telling me somthing? Or is it a dis

  • Steps to Capture and post Excise Invoice....

    Hello Gurus, Can any one provide me the detailed steps for capturing and posting excise invoice. I did try with J1IEX and even with J1IEX_C and _P. Thanks N Regards, Venu MG MM Consultant

  • PHP help, variables

    This is what my page looks like: Notice: Undefined index: page in C:\xampp\htdocs\index.php on line 3 Header Home More extra HOME CONTENT Footer I get that error at the top? This is all that's on my index.php file. <?php           $page = $_GET["page

  • Admin password recovery

    I recently reinstalled my operating system, Mountain Lion. I had to change my admin password then promptly misplaced it. How do I recover the password please?