question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue turning ON Replay Debugger

See original GitHub issue

I am having a similar issue with version 44.7.0. I am connected to a Sandbox ORG and I am able to deploy from a project locally to the ORG, however when I am triggering the command SFDX: Turn on Apex debug log for Replay Debugger, I get the following error message:

{"message":"Provided external ID field does not exist or is not accessible: null","status":1,"stack":"NOT_FOUND: Provided external ID field does not exist or is not accessible: null\n at HttpApi.getError (C:\Users\luis_\AppData\Local\sfdx\client\node_modules\jsforce\lib\http-api.js:250:13)\n at C:\Users\luis_\AppData\Local\sfdx\client\node_modules\jsforce\lib\http-api.js:95:22\n at tryCallOne (C:\Users\luis_\AppData\Local\sfdx\client\node_modules\promise\lib\core.js:37:12)\n at C:\Users\luis_\AppData\Local\sfdx\client\node_modules\promise\lib\core.js:123:15\n at flush (C:\Users\luis_\AppData\Local\sfdx\client\node_modules\asap\raw.js:50:29)\n at _combinedTickCallback (internal/process/next_tick.js:131:7)\n at process._tickCallback (internal/process/next_tick.js:180:9)","name":"NOT_FOUND","warnings":["All --json output, including on error, is moving to stdout. Use the SFDX_JSON_TO_STDOUT environment variable to move over to the new functionality. This will become the default in version 45."]}

SFDX: Turn On Apex Debug Log for Replay Debugger ended with exit code 1

I am also able to download a debug log from VS Code but launching from the .log downloaded doesn’t do anything.

This is my launch.json:

{ // 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": "07L3C000005c8RgUAI_20181119115110.log", "stopOnEntry": true, "trace": true } ] }

07L3C000005c8RgUAI_20181119115110.log is the downloaded log file.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
allileongcommented, Nov 20, 2018

Hi @lflorezcyberark, you should be able to launch the replay debugger if you use the full path to the log file instead of just the log’s file name ("logFile": "07L3C000005c8RgUAI_20181119115110.log",) in your launch.json file. Alternatively, you can also launch the replay debugger by right clicking anywhere on the open log file and selecting SFDX: Launch Apex Replay Debugger with Current File screen shot 2018-11-20 at 4 39 02 pm

1reaction
allileongcommented, Nov 19, 2018

Hi @lflorezcyberark, I believe I’ve found the issue and we are working on a fix. As a workaround in the meantime, could you try deleting all of your expired trace flags?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turn on Replay Log Debugger fails in Visual Studio Code
I'm getting an error when trying to use the 'turn on Apex debug log for replay debugger' command ...
Read more >
Apex Replay Debugger | Salesforce for VSCode
Run SFDX: Turn On Apex Debug Log for Replay Debugger. In your org, reproduce the issue that you're debugging. Get a list of...
Read more >
Issue with Apex replay debugger on running debug logs in VS ...
Problem- When running apex replay debugger, in VSCode on a debug file it ... CMD+SHIFT+P > Apex debugging > select the “Turn on”option....
Read more >
Debugging Apex with Replay Debugger - YouTube
In this Quick Take, learn how to examine and debug your Apex code effectively with the Apex Replay Debugger.
Read more >
Banish the Bugs with the Apex Replay Debugger - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found