Issue with Apex replay debugger on running debug logs in VS Code – User friendly Tech help
Problem- When running apex replay debugger, in VSCode on a debug file it generates error message.
n apex debugger errorn
Solution:-
n
Follow what error is saying and update the first line of log file, before running the Apex debugger.
n
Before:-
n
48.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WAVE,INFO;WORKFLOW,FINER
n
After
n
48.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;NBA,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,FINER;WAVE,INFO;WORKFLOW,FINER
n
Just changed logging level of VF Page to “Finer” as expected by Apex debugger run engine 🙂
n
Note:-
n
- n
- For debugging service need to enabled before debug to start:-
n
n
CMD+SHIFT+P > Apex debugging > select the “Turn on”option
n
- n
- Check that the Launch.json file exists with the Apex replay debugging configurations.
n
n
{n // Use IntelliSense to learn about possible attributes.n // Hover to view descriptions of existing attributes.n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387n "version": "0.2.0",n "configurations": [n {n "name": "Launch Apex Replay Debugger",n "type": "apex-replay",n "request": "launch",n "logFile": "${command:AskForLogFileName}",n "stopOnEntry": true,n "trace": truen }n ]n}n