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.

Apex Replay Debugger: Error: spawn ENOTDIR on Ubuntu 18.10

See original GitHub issue

Summary

Apex Replay Debugger on Ubuntu doesn’t seems to be working any time.. Here’s the configuration { // 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 } ] }

Steps To Reproduce:

  1. Click on Debugger icon, from the left panel.
  2. Click on the Play Icon to Launch the Apex Replay Debugger.
  3. You will get an error message saying, Error: spawn ENOTDIR

Expected result

On windows version of VS Code and Salesforce CLI always works fine with Apex Replay Debugger, but from last 1 year whenever I tried with the older version or the latest version I did’t found any working scenario of this feature, specially on Ubuntu.

Actual result

Always throw an error of spawn ENOTDIR, also tried to download the logs and launch it by clicking right button on those logs.

Additional information

Feel free to attach a screenshot. image

VS Code Version: Version: 1.34.0 Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758 Date: 2019-05-15T21:55:35.507Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Linux x64 4.18.0-21-generic

SFDX CLI Version: sfdx-cli/7.1.4-79f97a7df8 linux-x64 node-v10.15.3

OS and version: UBUNTU OS: Linux x64 4.18.0-21-generic

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sam1730commented, Jun 13, 2019

Thanks @lcampos It worked for me now.

0reactions
lcamposcommented, Jun 13, 2019

Ok, that error means that the Apex Language Server ran into an issue while starting up. Have you tried setting up your JDK configuration for the extensions using the salesforcedx-vscode-apex.java.home setting like it’s documented on Set Your Java Version ? We currently support using JDK 8 or JDK 11.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apex Replay Debugger | Salesforce for VSCode
The Apex Replay Debugger can be used with all unmanaged code in all orgs. It works with Apex classes, triggers, anonymous Apex, and...
Read more >
Apex replay debugger - Salesforce Stack Exchange
I am getting below error message when i try to run apex replay debugger. command 'extension.replay-debugger.getlog filename' not found.
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 generates error message. apex debugger error. Solution:-.
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