Oracle Apex Practical Note Series 1-oracle Apex Debugging Tips

Source: Internet
Author: User
Tags session id url example

1. Understanding Oracle Apex URL Syntax

An Oracle Apex URL example looks like this:

http://myhost.mycompany.com/myservice/f?p=1023:1:220883404335693447

Divided into several parts

    • Myhost.mycompany.com is the server URL
    • MyService is a database service
    • f?p= is the Apex URL prefix section
    • 1023 is Application ID
    • 1 is the page ID
    • 220883404335693447 is session ID

We can use f?p= to access the page and pass parameters, and its syntax is

f?p=app:page:session:request:debug:clearcache:itemnames:itemvalues:printerfriendly

This is related to debugging in the middle part of the 4th colon and the 5th colon, yes to start debug mode, no to turn off debug mode.

So, the previous example can use the following URL to open debug

Http://myhost.mycompany.com/myservice/f?p=1023:1:220883404335693447::YES

2. Another way to turn on debug


When we launch an APEX application, there will be a toolbar under the browser, a debug button on the right side of the view debug, and click it to switch to debug mode, and the button is displayed as no debug (for example). However, there is a drawback of this method will clear the parameters, but the URL method will not lose parameters, so I recommend the URL method.

2. Observe the debug record

When debug mode is turned on, the desired operation is performed, and then the view debug is used to see the operation record.

3. Add the customized information

In addition to some of the default log information, we can also add our customized information, such as printing some parameter values of the halfway step. This can take advantage of some PL/SQL functions from the apex, which are:


  1. Apex_application.g_print_success_message: = ' message ';
  2. Wwv_flow.debug (' message ');
  3. Apex_debug.message (' message ');






1 of the effects are: when the page loads there will be an information popup display

The effect of 2,3 is to see the output in process in view Debug.

Oracle Apex Practical Note Series 1-oracle Apex Debugging Tips

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.