Monday, May 7, 2012

How to generate a debug file in OM


  1. Set the following profile options:
    OM: Debug Level - set to 5
    OM: Debug Log Directory - any directory that can be written to by the database
    To check, run the following SQL statement:
    Code:
    select value from v$parameter where name = 'utl_file_dir'
    Set profile option OM: Debug Log Directory at the Site & Application Level.
  2. In the Sales Orders form go to Tools -> Debug and select 'Write to a File'.
    Note: Later versions of the Sales Order form do not have this option. Simply click on Tools and check the Debug box. This will print out a file name - NOTE down this file name (the first letter in the file name is lower case 'L').
  3. Perform the action you wish to debug.
  4. Go to Tools -> Debug and select 'Turn Debug Off' to complete debugging. Or on later form versions just uncheck Debug.
  5. After you have completed generating the debug file, please set the value of the profile OM: Debug Level back to 0, otherwise there will be some performance impact. Retrieve the debug file from the directory specified in step 1.

No comments:

Post a Comment