Search Results fa_debug_pkg




Overview

FA_DEBUG_PKG is a diagnostic utility package in the Oracle E-Business Suite Fixed Assets (FA) module. Its purpose is to provide a centralized, reusable debugging and tracing framework that Fixed Assets PL/SQL code can call to record runtime diagnostics, intermediate values, and processing milestones without interfering with normal transactional logic. The package body is stored in the APPS schema and is marked VALID for releases 12.1.1 and 12.2.2. It is classified as OTHER in the ETRM API classification, reflecting its role as an internal support utility rather than a public business API. The package is not referenced by any database object, but it references a set of standard EBS infrastructure packages, including FND_FILE, FND_GLOBAL, FND_LOG, FND_MESSAGE, and FND_MSG_PUB, which indicates that debug output can be routed to the concurrent manager log, the FND logging framework, and the message dictionary.

Key Procedures and Functions

The ETRM metadata documents twelve procedures and functions within the package body. The principal entry points are as follows:

  • INITIALIZE — Prepares the package session state before debug messages are collected, resetting internal control structures so that a fresh diagnostic run starts cleanly.
  • SET_DEBUG_FLAG — Enables or disables debugging for the current session, acting as the master switch that other procedures consult before recording output.
  • ADD — Appends a caller-supplied debug message to the in-memory debug buffer, forming the core of the tracing mechanism.
  • GET_DEBUG_MESSAGES — Retrieves the messages accumulated in the buffer for inspection or further processing by the calling code.
  • PRINT_DEBUG — Outputs the collected debug messages, typically to the concurrent program log via FND_FILE.
  • DUMP_DEBUG_MESSAGES — Writes the complete contents of the debug buffer in a formatted manner, used for detailed post-run analysis.
  • WRITE_DEBUG_LOG — Routes debug information into the standard FND_LOG logging infrastructure for centralized diagnostics.
  • RESET_INDEX — Resets the internal message index, allowing the buffer to be reused or re-read from the beginning.

Together these procedures implement a complete capture, retrieve, and emit lifecycle for debug information.

Tables Accessed

The only documented table referenced through APPS synonyms is PLITBLM, the standard Oracle PL/SQL table used for temporary in-memory storage of collection data. FA_DEBUG_PKG uses PLITBLM to hold debug messages during a session, which is consistent with the package's role as a transient diagnostic utility. No permanent Fixed Assets business tables are read or written by this package, confirming that it has no transactional side effects and is safe to invoke during production troubleshooting.

Usage Notes

FA_DEBUG_PKG is typically invoked from other Fixed Assets PL/SQL packages and concurrent programs that require diagnostic tracing. With 123 dependent packages documented, it functions as a shared debugging service across the FA module. Developers and support analysts enable the debug flag, run the failing process — often a Fixed Assets concurrent program — and then review the captured messages in the concurrent manager log or the FND log. Because the package writes only to the debug buffer, log files, and the message stack, it can be left in place without affecting business data. Its dependencies on FND_GLOBAL and FND_LOG also mean output is automatically associated with the correct application session and user context.