How to trace the parameter on a tracer in Pega? | Is it possible to trace parameters

Share with Love

Yes, it is possible to trace parameters in Pega using the Pega Tracer tool. The Pega Tracer is a debugging and diagnostic tool that allows you to monitor the execution of your Pega application and record information about it, including the values of parameters at various points in the execution.

To trace parameters using the Tracer, follow these steps:



  1. Enable the Pega Tracer: In order to use the Tracer, you will need to enable it for your application. To do this, go to the “Tracer” tab in the Developer Studio and click the “Start Tracer” button.
  2. Identify the parameters you want to trace: Determine which parameters you want to trace and make note of their names.
  3. Instrument your code: Next, you will need to instrument your code to enable tracing. This typically involves adding calls to the Pega Tracer at points in your code where you want to trace the values of parameters. E.g, you might add a call to the Tracer before and after a function that takes a parameter, in order to trace the value of the parameter as it is passed into the function and after the function has completed.
  4. Run your code: Once your code is instrumented, you can run it as you normally would. The Pega Tracer will record information about the execution of your code, including the values of the parameters you are tracing.
  5. View the trace: After your code has completed execution, you can view the trace using the tracer’s user interface. From the main menu, select “Tools > Tracer”. This will open the Tracer configuration page, where you can view the trace for your application. The trace will show the values of the parameters at different points in the execution, allowing you to see how the values changed over time.

How to generate autoincrement ID using Activity in Pega?