The log must be generated with log categories Apex code at the FINEST level and Visualforce at the FINER level.?
THINK OOTB
Problem- When running apex replay debugger, in VSCode on a debug file it generates error message.

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