Issue with Apex replay debugger on running debug logs in VS Code

Problem: While running the Apex replay debugger in VS Code on a debug file, an error message is generated.

Solution: To address the error, update the first line of the log file before initiating the Apex debugger.

Before Update:

48.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WAVE,INFO;WORKFLOW,FINER

After Update:

48.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,FINER;WAVE,INFO;WORKFLOW,FINER

The logging level of the VF Page was changed to “Finer” to meet the requirements of the Apex debugger run engine.

Note: Before starting the debug process, ensure that the debugging service is enabled. This can be done by pressing CMD+SHIFT+P, selecting “Apex debugging”, and then choosing the “Turn on” option. Additionally, verify that the Launch.json file exists with the appropriate Apex replay debugging configurations.

{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Apex Replay Debugger",
"type": "apex-replay",
"request": "launch",
"logFile": "${command:AskForLogFileName}",
"stopOnEntry": true,
"trace": true
}
]
}
Was this article helpful?
YesNo

Similar Posts