In most cases, I launch an Apex Replay Debugger session to review the last generated log file on my Salesforce sandboxes. However, retrieving the latest log from Salesforce to VS Code for debugging requires:
- Triggering the command to retrieve the debug logs (
SFDX: Get Apex Debug Logs...
) - Waiting and watching out for a popup that lists all the recent debug logs
- Selecting the first (or desired) debug log for download, note: the popup might easily dismiss itself if doing anything else at this stage
- Finally, launching the replay debugger for the downloaded log (
SFDX: Launch Apex Replay Debugger with Current File
)
The above steps take too much of my attention and are not fun to keep track on a spotty internet connection.