Debug mode and for (n in object) loop

Hi,
I have a for next loop to read all my xml nodes into an
array. Funny
(not) thing is that it looses one node when I run my loop in
debugging
mode. I know there are some problems with the debugger but
this one is
new to me.
Does the debugger have any influrence in stepping through all
elements
of an object with a for..in routine?
My code:
xmlData = this.childNodes[1];
for (n in xmlData.childNodes){
obj = xmlData.childNodes[n];
obj.attributes.value != undefined){
// !!breakpoint in the next line ...
if (obj.attributes.value != undefined){
_global.strary[obj.nodeName] = obj.attributes.value;
trace("node " + obj.nodeName + " " + obj.attributes.value);
}else{
trace("!node " + obj.nodeName + " " + obj.attributes.value);
Thanks for any info ..

There were one line too much the code looks like this. But
the problem
is still there:
xmlData = this.childNodes[1];
for (n in xmlData.childNodes){
obj = xmlData.childNodes[n];
// !!breakpoint in the next line ...
if (obj.attributes.value != undefined){
_global.strary[obj.nodeName] = obj.attributes.value;
trace("node " + obj.nodeName + " " + obj.attributes.value);
}else{
trace("!node " + obj.nodeName + " " + obj.attributes.value);
I tried to simulate the same with an array but the problem
didn't occur.

Similar Messages

  • Debug-mode and function calls

    Hi there,
    I'm coding a program in SE38 in a BW environment and there is a function call made (RSDRI_INFOPROV_READ). It seems that the table returned by this function won't accept double entries (which should be the case for standard tables), however, when I execute my program in debug mode, it does everything like it should. Anyone knows why it doesn't work when i choose execute as background job? It's hard to find what's wrong since in debug all goes well...
    thank you,
    Tom

    Why not debug the program in background running?You can add a endless loop before the code you are interested in, and then enter debug mode to jump to the focus code at background job console.

  • Problem with Debug mode and SLD

    Using the config tool, we have turned the Debuggable flag to 'yes' and set the Debug mode to OFF.   Now from the studio, when I enable debugging for the process, the server0 stops successfully and restarts successfully. However, during the restart, the SLD service errors out and does not get started. It encounters the following exception. I can verify the error in std_server0.out
    With erred SLD service, when I try to deploy and run the webdynpro application from studio, the deploy fails with the same exception.
    We tried all kinds of restart (of the engine\server instance), debuggable and debug mode setting permutations, but not successfull.  (debug port is 50021)
    We are having remote debug server setup (not local).
    Does anybody have any suggestions???
    The exception we get is:
    Finished with warnings: development component 'CreateOrder'/'local'/'LOKAL'/'0.2007.11.26.14.33.54':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application local/CreateOrder and wait. Reason: Clusterwide execption: server ID 3775750:<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Implied start failed for dependency :local/CreateOrder -> service:sld', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Implied start failed for dependency :local/CreateOrder -> service:sld', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Implied start failed for dependency :local/CreateOrder -> service:sld', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Implied start failed for dependency :local/CreateOrder -> service:sld (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

    Hi Michael,
    one way is to enhance the server go.bat with debug parameters. Under c:\usr\sap\<SID>\j2ee\<INSTANCE>\cluster\server\go.bat define the following params
    set DEBUG_PORT=5000
    set DEBUG_PARAMS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=
    and add both params to the java arguments (e.g. behind the -classpath): %DEBUG_PARAMS%%DEBUG_PORT%.
    Regards,
    Stefan

  • Debug Mode "OFF" for J2E instance server0  - Caused by "Productive Use"

    Dears,
        As titled, Debug fails for server0.
        I have checked the forum threads, and my problem is:
    <b>Property "Productive Use" of server0 has a value "YES".</b>
        As debugging can only be available on non-productive-use server mode, I couldn't start debugging.
        Any one knows how to change "Productive Use" as "NO"?
        Thanks in advance.
        btw: The "Productive Use" value of 'SDM' is "NO", while for 'dispatcher' it is "YES".

    Hi,
    You can use the config tool to run the server in debug mode (running the server in debug mode will automatically set the "productive use" attribute to "off"!)
    To launch the config tool, run the configtool.bat file located in \usr\sap\<SID>\<INSTANCE>\j2ee\configtool directory. In the lefthand side tree locate your server process and select it. Then on the righthand side go to Debug tab and activate debug mode for this element.
    After you save the changes, you need to restart the cluster.
    http://help.sap.com/saphelp_nw04/helpdata/en/cc/9cb34d9d11f74c98644df2b96b90f1/frameset.htm
    Regards
    Ayyapparaj

  • Performance Diference between debug mode and release mode

    Hi ,
    I have been running an C++ multithreaded application with below technical specification on Production for more than an year.
    OS - Solaris 10 , Opteron
    Compiler - Sun Studio 11
    Bit Mode - 64
    I wanted to know what is the difference in the debug mode of an C++ application compiled with -g option and a release mode compiled with an optimization apart from the size of the binary and availability of debug information in case of a crash.
    1) Does it degrade the performance of the application? If yes by what extent?
    2) Does it use more memory?
    3) Will switching from Debug to Release mode with some optimization coupled with any kind of risk like byte guard etc which could lead to dumps and all? If yes what could those be?
    4) Which optimization level should be used?
    Regards,
    Ankur Verma

    If you compile without any optimization (with or without -g), you will see a noticeable difference in performance in most programs compared to compiling with a reasonable level of optimization. How much difference depends on the nature of the program, and what percentage of time is spent in code regions that can benefit from the code improvements.
    If you add -g, function inlining is disabled, which can dramatically reduce program performance. You can't debug a function that is generated inline, which is why this option disables inlining. (The +d option also disables inlining.)
    If you use -g0 instead of -g, function inlining is preserved.
    If you use -g0 with optimization, you get the advantages of optimization while still allowing limited debugging. (Local variables are not visible.) Beginning with Sun Studio 12 update 1, the current release, -g with optimization enables function inlining, so the effect of (for example) "-O -g" becomes the same as "-O -g0".
    A few optimizations are disabled with -g or -g0, the exact difference depending on the compiler release and patch level. Most programs won't see a difference in performance.
    Since you are running on Solaris 10, you should upgrade to the current release, Sun Studio 12 update 1. You will get many improvements and some new diagnostic tools. The new release is a drop-in replacement for Studio 11. You don't have to recompile any existing binaries, but you will want to recompile to get improved performance.
    [http://developers.sun.com/sunstudio/]

  • Debug mode and normal mode

    Hi;
    we made a repair coding in MFBF. we send a mail to someone after saving proggress.
    in debug mode it's working. but in normal mode it's not working.
    WHY?.
    Thanks

    Hi,
    What type of repair ? What have you used for that ? Please explain in detail.
    Regards,
    Mukul

  • CVI under W2K crashes when using stop in debug mode and AOGenerateWaveforms

    When using AOGenerateWaveforms to generate a sine wave. If you hit stop in debug the PC restarts. If you're using the same channel to generate a DC signal, it's fine. Seems to be the card accessing the dynamic memory I've set the waveform up in after you hit stop and the memory has been free'd.

    This is sometimes the nature of the beast. When your program is running you are doing DMA transfers to locations in memory that have been setup by your operating system. Now if you stop your program, with out killing or stopping the DAQ device it will cause you problems in some cases. You need to call AOClearWaveforms before you stop your program.
    If you do not stop the DAQ device, before stopping your program it will cause the DAQ device to write to memory that is no longer allocated for that process. In most cases windows detects this as an error and reboots the system, because it thinks a program has crashed and is now writing to memory locations out of its designated space.
    I hope this helps.
    Joshua

  • MF Crashes on startup, but works in safe-mode and for a few minutes after making a new user, can anyone help?

    After troubleshooting for a few hours, I still cannot find a proper solution. Effectively, I learned that if I create a new profile user, with this command in windows Run: "C:\Program Files\Mozilla Firefox\firefox.exe" -p , I can open the user profile menu manually, and create/delete a new/not-new user, and upon creating and using a new one, it works fine. For a couple of times opening the browser, anyway, in which it results in the same problem as before. I took a list and compared the old files to a brand new users files, and did find some differences. Take these into effect,
    The compatability and extensions .ini files were differed by 3 kb , with a new user being 1, and the old user being 4.
    The Local Store .rdf file differed from 2 for a new user, to 4 for an old user.
    The Mime Types .rdf file differed from 3 for a new user to 4 for an old user.
    Plugin Reg(istry?) .dat differed from 17 new to 20 old.
    Search.json differed from 13 new to 16 old.
    Search Metadata.json differed from 1 new to 4 old.
    URL Classifier Key 3.txt differed from 1 new to 4 old.
    Web App Store.sqlite differed from 96 new to 128 old.
    (All units are KB)
    Seeing as a few articles relating to the problem are "no longer maintained" and the solutions work only temporarily, I came here hoping to fix this little issue. Thank you, and good luck in advance.
    -Av
    Note; the first crash ID is for the new user that crashed, the last is for an old user.

    I see.. I have heard rumors of this, but it did not occur to me that this would literally crash upon startup. Thank you for the help, Edmeister. Will check as "solved it" if it works. Thanks again!

  • Debug mode for WD app in CE 7.1 EHP1

    Hi experts,
    I need to debug a WebDynpro application that I have created in my CE7.1 EHP1 environment.
    In the config tool for the Java instance, I have set "Debug Mode" to true and checked the "Enable Debug node" checkbox.
    I restarted the server after this and in SAP MMC Snap In, found that the server0 is running and the Debug column also shows a stauts of Switched on(<<port number>>)
    When I try to create a new Debug Configuration using the Debug Dialog in NWDS, I select SAP Application and attach the appropriate WD app to the configuration.
    At this point, the server instance is automatically selected, but I get the following error message:
    Runtime: No debuggable node available. Open a debug session in SAP Management Console first
    What might I be missing?
    Regards,
    Puja

    Hi guys,
    about one year later I had the same problem as Puja Malhotra.
    Gopala Krishna gave the correct answer but unfortunately he missed to offer the suitable help. So I will catch up
    You have to set the values "debuggable", "debug mode" and "debug port" with the Config Tool to edit the JVM Settings for a Specific Instance.
    Have a look at:
    [http://help.sap.com/saphelp_nwce71/helpdata/en/39/7796e0a7be604ab63c2924045710a8/content.htm]
    After restart it should work!
    Best regards

  • Why is debugging an AIR for Android on device via USB so awful?

    I've used Flash 8, Flash Pro CS4, CS5, CS5.5, and now CS6 and I have to say when it comes to debugging it is absolutely the worst environment I've ever worked in. Over the years the number of times I've successfully debugged an application can be counted on one hand. Really, its that bad. Flash will crash or stop responding. I place a breakpoint in the code and Flash will either: A) Ignore it, B) "Breakpoint not set; No executable code at line ###" C) Crash and burn. D) breakpoint turns on but can never be turned off.
    Its infuriating and maddening. After this much time why can't Adobe make the debugger work?
    Frankly, because of this I have to write ALOT of trace statements into my code.
    Has Adobe just given up on the debugger in Flash Pro? As a developer should I be trying to convince my company  to switch over to Flash Builder?
    For example, right now I'm trying to debug an AIR for Android 3.4.0.2540 via USB on a Motorola Droid 2. I can publish and run in debug mode and see all my trace statements just fine. But I know the instant I need to try to set a breakpoint I'm doomed. Or if my code gets in a race condition like right now. The breakpoints in the new code I added were ignored (see B above) and I can find no options in the Debug menu to break into my app and observe what code it is currently executing. My only option is to end the debug session.
    Can anyone comment on debugging in Flash Builder vs. Flash Pro? Is it any better?
    Can anyone suggest a solid development environement with debugging that supports Actionscript 3 or can compile it to some other language or object code that would allow me to reliably debug code?
    I'm sorry for venting like this. I like Actionscript 3 and I even like Flash Pro until it comes to debugging. But at this point I really need to consider other options so I can get some work done.

    Hi Chris,
    I also have an HTC Legend, and I'm trying to make some tutorials about publishing from Flash Builder to Android.
    I've notice this also, and I must say, it's a complete deception that AIR cannot support this phone, and certainly it seems that upgrading to the Android 2.2 was a bad option, since I defenitly was able to make a simple flash game, and some other exeperiments, and got them to work with AIR when this phone had Android 2.1
    If it runs on Android 2.1, maybe it was a an upgrade that make AIR incompatible with this device on Android 2.2. Is there any way of running it, maybe forcing to install a AIR version that works.
    I was starting to program on Flash Builder, and experimenting on my Legend, but now I stumbled on this.
    Thanks,
    Leonel

  • Runninga Process in Debugging mode

    HI,
    I want to runa  process in debugging mode. I want to see teh change in the values of teh variables...control the flow step by step ect....is there a flash tutorial or screenshots guide which shows me how to start a process in debug mode and proceed step by step watching teh change in variable....i already tried the Documentation ect but those could not help me.
    Some one from SAP Please help me with this....Martin Moeller, I will be gerat ful if you can help me with this guide.
    Thanks
    Dinesh Ghanta

    Hi Dinesh,
    Official documentation regarding debugging can be found here:
    https://help.sap.com/saphelp_nwce711/helpdata/en/1a/231cad09cf4d2eb7695bdf159bc39f/frameset.htm
    As written it is important to set breakpoints in your process model. This is the point where the process execution will pause until you continue using the commands from the debug perspective.
    After that build & deploy your model.
    Finally create a debug configuration (this doesn't really differ from how to create a debug configuration in Eclipse in general).
    Now start the debugging session (clicking onto the little green bug in the debug perspective)
    In case the server is configured correctly you'll see that the debugger is now connected.
    Once an instance of this process model ist started the debugger will react on that and halt on the first breakpoint.
    Starting from there you can have a look at the modeled data objects (and its values) and how the flow will be executed by continuing step by step.
    Unfortunately I do not have any screencam available for that (yet).
    Cheers,
    Martin

  • Visual Studio 2015 strange failure in debug mode

    Hi,
    I installed the latest vs 2015 on windows 7 (vmware) to test it compiling and running a set of applications (desktop) I have.
    The compilation is ok but when I try to run one of those apps, I get this error (running the debug version):
    Please note that if I run in release mode, there is no error at all!?
    Following the call stack, it seems that it fails somewhere in the STL releasing a temporary string or something like that. Unfortunately, I cannot create just a small example showing the failure.
    Any ideas of why will this failure be in debug mode only? Note that the call stack shows that this code:
        ~_String_alloc() _NOEXCEPT
            {    // destroy the object
            _Free_proxy();
    is run from xstring and it fails calling "_Free_proxy();". Also note that this is called ONLY when _ITERATOR_DEBUG_LEVEL is defined. No such code is run in release mode.
    Thanks,
    G.

    Hi,
    I think I found the issue and here are some details, hopping that it will help others running in the same problem(s).
    First, I did not have just the issue starting this thread, there was another issue related.
    I have created a C++ DLL exporting common functions I used in various applications. Most of the time I used this DLL from console programs (servers). However I had two GUI programs where I also used this DLL, one based on MFC and the other on WTL.
    These two programs have the issues as follows:
       When the MFC program is run in debug mode under the IDE, at exist the IDE will show a memory leak. This happened with both vs 2013 and vs 2015. This is a debug mode only issue.
       When the WTL program was run in debug mode under the IDE, it showed no problems at all when using vs 2013 but had the issue described at the starting of this thread under vs 2015. This is also a debug mode only issue.
    It turned out that mfc issue was caused by a known bug in MFC where the termination code of the mfc app, is run BEFORE the termination of code of the DLL. This way the IDE give a false memory leak!! There were actually no memory leaks, just the false alarm!
    I am not sure exactly what is going on in the WTL but the issue seems somehow similar in the sense that something not loaded in time from the DLL caused the problem.
    The solution: For both projects in fact it was very easy to fix this issue by setting the option to delay load the DLL. That in turn will force the MFC to wait to first unload the DLL and then
    there is no false leakage info! This also as I said fixed the WTL issue but I am not sure why? Anyway the WTL is no longer maintained (too bad!!) so who know?!
    Bottom line: if you use DLLs from WTL or from MFC, delay load your DLLs! Otherwise you may get this nasty false flags in debug mode and the assert issue.
    G.

  • Call function in debug mode

    Hi,
    when I´m on the test function screen of se37, I can run the function in debugging mode and it´s starting with the debugger on the first code line.
    Is it also call a function from a report in this debugging mode?
    thank you!
    reward points guaranteed

    Thank you for your answers...
    Let me explain a little bit more in detail, what I want to do.
    I have an XML interface function which is going to be called by an
    external application about RFC, reading binary data,
    interpreting that as XML and doing something in the SAP system afterwards.
    As the system is a 4.6C I can´t debug externally, I want to provide
    a debugging function in a monitoring application for that.
    As people are using the monitoring, which are not familiar with all
    the code behind that, I want to start the debugging mode by myself,
    without setting a breakpoint.
    Let me describe it like this:
    When you type in /H in the transaction field in the SAP menu bar, the
    debugging mode is going to be started for further actions.
    All I want to do is starting that /h debug mode without typing anything
    in the transaction field, just inside of the report.
    How can I do that?
    Michael

  • Running in Debug Mode

    Hi All,
    If I run my OAF page in debug mode and keep pressing F8, the control tends to reach classes like OAWebBeanHelper etc.
    Are we suppose to look into the code for these classes for debugging ?
    How do I skip these seeded classes code when I am in debug mode ?
    I want to see, where the control is going from the end of my current method..
    -Amit

    What exactly are you trying to debug. At the end of your method it will go back to the next line on the calling method. You can check that in the stack window(next tab to the structure pane) where you will find the entire stack of flow. You can also use Step out of the current method in to the calling method.

  • Processing happens only in debug mode.

    Hi,
    I am calling an RFC enabled FM BAPI_ALM_NOTIF_DATA_MODIFY and BAPI_ALM_NOTIF_SAVE to modify the data of a notification. These function modules are called within another FM which is also a RFC called in background as a separate task. The problem here is that, the data gets modified fine only when I am in the debugging mode and execute it. But if I execute without going to the debug mode, I cannot modify the notification data. Kindly suggest why this is happening and what the solution is. Thanks

    I am not using any destination. The code is as shown:
      WAIT UP TO 5 SECONDS.
      CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number                 = aufnr
       IMPORTING
         es_header              = gf_header
        TABLES
         et_olist               = it_ord_notif
          return                 = it_ret
    CALL FUNCTION 'BAPI_ALM_NOTIF_GET_DETAIL'
      EXPORTING
        number                   = gf_header-notif_no
    IMPORTING
       NOTIFHEADER_EXPORT       = gf_notif_exp
            CLEAR: gf_notif_no.
            DESCRIBE TABLE it_notif_no LINES g_line.
            READ TABLE it_notif_no into gf_notif_no INDEX g_line.
            IF gf_notif_no-short_text+0(3) = 'PRB'.
             clear: gf_notif_imp, gf_notif_imp_x.
                gf_notif_imp-desstdate = gf_notif_exp-desstdate.
                gf_notif_imp-desenddate = gf_notif_exp-desenddate.
                gf_notif_imp_x-desstdate = 'X'.
                gf_notif_imp_x-desenddate = 'X'.
                CALL FUNCTION 'BAPI_ALM_NOTIF_DATA_MODIFY'
                      EXPORTING
                        number                   = gf_notif_no-notif_no
                       NOTIFHEADER              = gf_notif_imp
                       NOTIFHEADER_X            = gf_notif_imp_x
                     IMPORTING
                       NOTIFHEADER_EXPORT       = gf_notif_result
                     TABLES
               CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
      EXPORTING
        number            = gf_notif_no-notif_no
    IMPORTING
      NOTIFHEADER       = gf_qmnum_save
    TABLES
       RETURN            = it_ret2.
              endif.
                clear: gf_notif_no.
            LOOP AT it_notif_no INTO gf_notif_no.
              IF gf_notif_no-short_text+0(3) = 'PRB'.
                SELECT SINGLE objnr FROM viqmel
                                                      INTO g_objnr
                                                     WHERE qmnum = gf_notif_no-notif_no.
                SELECT SINGLE stsma INTO g_stsma FROM jsto WHERE objnr = g_objnr.
                SELECT SINGLE estat INTO g_stat FROM tj30t WHERE stsma = g_stsma AND
                  spras = 'EN'
                  AND txt04 = 'SFMR'.
                CALL FUNCTION 'STATUS_CHANGE_EXTERN'
                  EXPORTING
                    check_only          = ' '
                    client              = sy-mandt
                    objnr               = g_objnr
                    user_status         = g_stat
                    set_inact           = ' '
                    set_chgkz           = 'X'
                    no_check            = ' '
                  EXCEPTIONS
                    object_not_found    = 1
                    status_inconsistent = 2
                    status_not_allowed  = 3
                    OTHERS              = 4.
                IF sy-subrc = 0.
                ENDIF.
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
      ENDIF.

Maybe you are looking for

  • ITunes can not run because some required files are missing.

    I got a message that said something like "iTunes can not run because some required files are missing. reinstall itunes." I tried to reinstall iTunes but I kept getting that message. So, i uninstalled it, and tried to install it again. this did not wo

  • Installation error:Failed to link liborasdkbase.so.10.2

    I am installing Ora10gR2 on Linux, and I got the following error message. There is No requirement failure or warning. Can anyone tell me what's wrong here? INFO: End output from spawned process. INFO: INFO: - Linking liborasdkbase INFO: /u01/app/orac

  • Can I reinstall software without losing iTunes library?

    No probs with my 20 GB color iPod until I updated new software. There's a moral there somewhere...anyhow, after a brief problem where the PC wouldn't recognise the iPod and the iPod software couldn't be updated, the iPod today spontaneously froze cou

  • Need help with jre-1_5_0_04 windows i586 use windows 98 first edition HELP

    HI, this is my first post here so please bear with me while I try to explain the problems I seem to be having here . I hope that someone here can assist me with these issues as well??? I am using the windows98 first edition, and I wanted to use the l

  • How to unlock without a keypad

    I have a blackberry curve 8320 and the keypad broke, so it's now impossible to unlock it or even reset it because i cannot write all the letters needed. how do i reset it or unlock it without the keypad?