Tips to debug / find the source of the problem?

Hello

I have a problem with an ApEx application that is a little large and complex.
Anyone has any suggestions or tips to find where a bug in the program data that happens?

My version of the ApEx is 3.2.1.00.12

Tips for debugging / tracing are greatly appreciated!


Details of the problem:
Somewhere, the values in the ApEx APEX_APPLICATION collection. G_F33 get set of duplicates.
In a process Page:
FOR i in 1..APEX_APPLICATION.G_F33.COUNT LOOP
-- This code is running too many times
END LOOP;

In very general terms, here under the name of debugging tips:

1. (this is a sine qua non btw - stop what you are doing and do this first): see the documentation of the APEX for a debugging guide. There are references to the "window of Session' and 'Debug Mode' - making use of these views can give you a lot of detailed information on the current status of your application and what happens during the loading of the page.

2 make use of the

wwv_flow.debug

function of output messages, which can be seen in the denunciation of "Debug" (see above) - it's kind of equivalent to the use of the former

 DBMS_OUTPUT

in the world of PL/SQL.

3. in the more complex application logic/code, try save information using a kind of framework for logging - either something about measurement or using a solution "on shelf".

I would say that under option 3, especially for capturing information about errors/exceptions. I used to use my own custom logging package/table combination, but I moved to the use of APEX Logger of Tyler Muth *, which helped improve the debugging/alpha test of my applications without end.

It is very easy to install, simply require some relatively minor privileges database and executing a single SQL script (of course if you do not have the relevant privileges, talk with your local administrator own - bring beer/chocolate/candy / [bribe choices] to facilitate).

While writing the application code, you can insert calls to the relevant Recorder function in areas requiring an observation. These entries can then be queried via built-in views. In addition, you can capture complete session Apex information with a simple function call, which allows you to examine the State of the whole application at a point of run (particularly useful for situations where there is a reference to several pages or elements of application).

Once you have finished your debugging phase, you also have the option to change the logging levels so that (for example when you move to a production environment) you can turn off logging completely or leave it to report errors only.

(*) I have no affiliation with Tyler Muth or recorder of APEX is said by the way

Tags: Database

Similar Questions

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

  • 8.1 MBP crashes (once a week) - help me find the problem

    I have a MacBook Pro 8.1 (end of 2011). I am running 10.11.3.

    I had changed to a (Crucial MX100) SSD HARD drive, more RAM and a new map of the airport. I reinstalled the operating system. The accidents occur both before and after that the new hardware has been installed

    There are standard procedures I need to do? Can someone point me in the right direction to find the problem?

    Thanks a million in advance

    Please show us a log of the accident or multiple failures Mac OS X: how to connect to a kernel - Support Apple panic so that we can get a clue and perhaps offer advice of soma

    Accidents or kernel panics occur when the machine runs into an error, it can not overcome and forces a stop down. This can be the result of hardware and software.

    Please try and note what programs you have open or what you have to do on the machine when it crashes. For example: your machine crashes whenever you use firefox (the browser), and then use safari or chrome and see if the kernel panic stop.

    I hope this helps!

  • Help to find the problem of synchronization

    Hello

    If anyone can provide a line of attack for this, I would really appreciate it.

    I have attached a screenshot showing the problem. The delay is activated because the vi ceased when you try to move the motor step by step. This stepper vi works well in other parts of the main vi and works very well highlighted and step mode. It even works very well within the Interior OF the loop at full speed highlighted is disabled, but fails when the vi it reached when it is called again on the outside while loop.

    I tried to increase the delay of 2 seconds, and I tried to use the error from the inside of the loop line, but not joy.

    Any suggestions?

    Thank you.

    Awesome! Works perfectly, thank you.

    I'm a little puzzled why, as the data flow means the outer loop is achieved before the inner loop and add the wire delays the inner loop and my vi was not before her who got up to now. If you have time to explain, I would be grateful, but thanks for the answer anyway.

  • Im having several problems app fatalerror 502 / configuration each time that I reboot cannot find the problem

    also I lost conecction with IE, also my computer when it is stopped down it auto starts in the middle of the night.

    Hi Tericlark,
     
    -What, exactly, is a transcript of the error message that you receive?
    -Remember to make changes to your computer after that this problem started to happen?
    -What happens when you lose the Internet connection? You receive an error message? If Yes, indicate the same.
    -Have you set the power options on your computer?
     
    Put your computer in a clean boot state to identify the application at the root of this problem.
     

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Windows7 Pro - HP Probook 4540 s - No sound and the research of error cannot find the problem

    A few days ago my sound suddenly disappeared. He worked for years.

    I managed to recover, using the search to error, it was something off.

    After restarting my computer the next day, the noise was gone, again, and this time, I've not found errors using the error search features in Windows.

    Volume is up, but not sound.

    Douglas

    Yhank you Niranjan Manjhi

    • Are you referring to the resolution of the problems when you say, "error search skills?

    Answer is Yes

    I think that your method 1 is the first step, I'd take, now when you have shown the way.

    But before I got this solutio.n you, I tried to call the HP Support and got a person very helpsam, and together, we started a tour.

    Whenever I tried to game the system a system - its, it was rejected, to do that the sound material was busy serving a different task.

    Because I didn't have any other thing going, we went into the SYSTEM and looked at what was experiencing SOUND and found one entry, belonging to a program I installed years ago to convert videos.

    So I uninstalled this driver - and bingo - I got my sound.

    So this is the reason why I have not tried your solutions.

    Thanks for the effort, I'll save it for next time.

    Douglas

  • Use high CPU; Could not find the problem.

    Hello. This is my first posting on this Web site. I came across a problem last night after rebooting my computer, where a game I start or even a little intensive, I opened, my CPU usage increases by 14% to ~ 100% instantly. I tried this on many programs such as Minecraft, all games on Steam, Firefall and even some of Malwarebytes when I scan if a virus is the cause. None of my anti-virus software found a virus, so I'm suspicious as to what may be the problem. Here are my computer specs:

    Processor: Intel Core i5-3550 CPU @ 3.30 GHz (4 CPUs), ~3.3GHz
    Graphics card: NVIDIA GeForce 8800 GT
    Memory: RAM 8192MB
    OS: Windows 7

    Ask more if necessary. Thank you.

    NA

    In this trace Skype * by far) was the most important.  I would try to re - install

  • Cookie bug, could not find the problem. Help, please

    I work with this cookie, it works well, but there's a bug in there and I can't understand what the problem is. Here is my code:

    PAGE 1:
    < IsDefined ("cookie.hitbox") cfif >
    Off
    < cfelse >
    On
    < / cfif >
    < IsDefined ("cookie.hitbox") cfif >
    < a href = "apply - setting.cfm? hire = hitbox"> < strong > < u > activate < /u > < / strong > < /a > < br >
    < cfelse >
    < a href = "apply - setting.cfm? Disable = hitbox"> < strong > < u > < /u > Disable < / strong > < /a > < br >
    < / cfif >

    PAGE 2:
    < IsDefined ("deactivate") cfif >
    < name cfcookie = "" #deactivate # "value ="Off"expires ="never"> <! - < set - cookie stop music - > >"
    < cfelseif IsDefined ("committed") >
    < name cfcookie = "' #engager # ' value = 'temp' expires ="NOW"> <! - < cookie deleted music is on - > >"
    < / cfif >
    < cfinclude template = "soundedit.cfm" >

    When you click on the link on the first page, he strikes the 2nd page is suppoed to go back to the first page and to show the link, either disabled or committed. When I turn it off with this link, it works fine, but when I engage the rod with this link, he hangs up right and don't go back to the page with the kinks on them. No error and it committed the code, but will not use the < cfinclude > I even had a problem with this code as well, I had to use an inclusion instead of a cflocation to get the disable to work properly and return page 1. I also tried to put the cfinclude in both parts of the if statement and it does not hire him.

    I did something wrong in my code? Why it hangs on me? I use 6 CF.

    Thank you.

    Phoenix

    When you do a cflocation the cookie will not define because they are set using the response header. When you do a cfinclude the cookie are removed from the client not the scope of the cookie.

    http://livedocs.Adobe.com/ColdFusion/6.1/htmldocs/tags-A18.htm

    [quote] now: removes the cookie from the client cookie.txt file (but does not delete the variable corresponding to the scope of the Cookie to the current page). [/ quote]

    you will need to either:


    or

  • Tecra M3 freezes up, but I can't find the problem, please help! : D

    Basically, it seems to be something of a dry joint or lose the connection under the touchpad does about the pcmcia slots. The pc works only when pressure is applied to the plastic around the touchpad. Linux seems to work better than windows in terms of freezing. So, it can load an operating system and the bar going through and it just stops, it will not go further. The capslock light stick, as will numlock. However, once you apply pressure, she continues as usual. take the pressure off and it hangs again.

    Ideas?

    Hello

    Are you sure that there is nothing wrong with the HARD drive or Windows system files?
    You suggested that Linux works better than Windows.
    So I guess that the issue could be caused by a failure of the system.

    Have you tried to format the HARD drive and reinstalling the Windows operating system again?

    I can't believe that OS gel has something to do with the loss of connection, etc.. But who knows, impossible is nothing!

    In this case, you must contact the ASP in your county because the laptop must be professionally checked and this test can be done by a user of portable ordinaries like you and me.

    So good luck

  • my computer turn on green screen films and videos and I can not find the problem. How can I fix

    My computer screen guard goes to the Green-videos and movies. Someone at - it answers.

    Moved from the community involvement Center

    Hello

    A lot of times that can be a problem of Codecs.

    See you soon.

  • Could not find the problem with the sound and speakers

    Hi, I have a Pavilion dv7 with windows 7 and there is the sound of the computer, commissioning, but if I try to watch a video or listen to music online there is no sound. Also if I open Itunes, and I press play on a song of the song does not play. I tried using media player but it says it can not play either.

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp58001-58500/sp58226.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you're done, shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  'Speakers and headphones' left click once to highlight, and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

  • I had problems with the color mode. kept, restart photoshop to find the problem. NOW Photoshop CS6 will not organize, it is stuck on "initializing". How to start?

    At first my documents were pasted on the CMYK color mode, and I couldn't understand how to convert the file in RGB.

    Finally, I abandoned, saved the file and tried to present what I was working on a Web site.

    Before that, I closed photoshop and he raised 2 times in a row to test color on profiles. When finally it seemed to me he decided to go back to RGB, I closed and returned to climb my image. However, the site did not accept it because the jpg was in CMYK. So, I went to relaunch photoshop to convert its color profile and now photoshop will not launch.

    As a first step, it got stuck on "checking memory."

    I closed my computer to see if this would clearly be the question, then tried to restart photoshop and it is now stuck on "initializing".

    I really need photoshop work, so how can I solve this problem?

    Laptop: The Retina of Macbook Pro screen

    OS: OSX 10.11.3 EL Capitan

    PS: Adobe Photoshop CS6

    It is the first time that I ever had this problem, and I've had this program for 2012.

    Hi shiblets,

    Please press the home button on the keyboard when you see the screen "initializing".

    If it does not, please press the SHIFT key and then launch Photoshop, to ignore the third party Plugin.

    Kind regards

    Tanuj

  • Charter at random in the browser - can't seem to find the problem

    I'm having a problem even on my site www.ITforU.org - you can see the stray animal > in the left hand column.

    I looked at the code several times and do not see an extra > anywhere.

    any ideas or advice?

    Thank you

    Look around line 157:

    See what influential people have to say about learning to code as a first step in the study of computer science.

    >

    See here on the end?

    Jim

  • printer says its troubleshooting, but can't find the problem

    I have a MFC-9560CDW printer
    I have a Dell Optiplex 990 running on Windows 7 Professional

    Printer says I'm connected but she need to troubleshooting when I click on solve it says that it cannot find a problem

    It worked before on that PC or you just installed it?

    http://welcome.solutions.brother.com/BSC/public/us/us/en/DLF/download_top.html?reg=us&c=us&lang=en&prod=mfc9840cdw_all

  • The problem of the browsers download

    I created the site DWCS6 & the final.css Missing Manual style sheet. All good in DW in my pc but my header main graphics & my logo does not show in any of the browsers. I changed the final.css based on my content, but I can't find the problem. URL http://www.nowistimenewworld.com/. in my file structure, I have the following folders: images-css-pages. Is it possible that bluehost is unable to find the person to load images because of the records? "Maher all help! "

    Hello

    Please take a look at your "index.html". In your source code I can not see any special content, or do you want to show?

      Index of /.

    Index of /.

  • CSS /.
  • images /.
  • pages.
  • Apache Server at www.nowistimenewworld.com Port 80

    Please charge your correct index.html

    Hans-Günter

Maybe you are looking for

  • Battery saver is not available on the iPad mini

    We have updated the iOS on iPad for work and when I went to turn on this subject battery saver appears even in the settings. Is this a bug or is this normal for iPad mini?

  • p1a95ua #aba: damage to the screen of the computer

    I was wondering how much a HP laptop windows ten screen would cost for repair?

  • Windows 7 - install error

    I got my new laptop today and was going through the Setup program and when you are prompted to select 32-bit or 64-bit I chose by mistake 32 bits. I want to know if its possible to redo the configuration and select 64-bit instead.I have no restore /

  • Satellite P200-1EE - cannot get the camera to start

    After plunging through the forums, I noticed a lot of people have had problems with their bed with web cameras. Before that the camera was just in a bad mood, for turning on and off indicating other applications had locked its use (when they n even o

  • Fuse Sansa, volume and variation

    Hi again Starts just to the right in advance at this point that when I raise the volume to about 75% + my music begins to jitter/skip. I have no idea why this is happening, it just started! Any help? Brad