This extension has been deprecated, its functionality was rolled into the vscode-kha extension.
kode / vscode-electron-debug Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Performance
electron-debug
18.11.1
Windows_NT x64 10.0.19041
1.44.2
C:\Users\Aleks-PC\kodetech.electron-debug-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
Hello, this is my setup:
Host: Linux Ubuntu 19.06 64 bits
Visual Studio Code - Insiders 1.38.0
Extensions installed: Debugger for Electron 18.11.1, Remote-SSH, Debugger for Chrome
Remote: Raspbian Buster With desktop 2019-07-10
Remote extensions installed: Debugger for Electron 18.11.1
I am able to connect to the remote via SSH with VS Code Insiders to the Raspberry Pi. My Electron app is the Electron Quick Start sample.
This is the launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"type": "electron",
"request": "launch",
"name": "Launch Electron",
"sourceMaps": true,
"trace": "verbose",
"appDir": "${workspaceFolder}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron"
}
],
}
I did try this same configuration on a Linux machine. Locally, it is working just fine. I can set breakpoint inside JS code and all it's good. But I'm facing issue while remote debugging on another machine.
And I'm getting the message below while trying to start debugging (this is the end of the log, I can send you all the log if you want to have more information):
Discovering targets via http://127.0.0.1:14400/json
HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:14400
To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"ClientRequest/launch","data":{"Versions.DebugAdapterCore":"6.7.31","Versions.DebugAdapter":"18.11.1","successful":"false","exceptionType":"firstChance","exceptionMessage":"Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).","exceptionName":"Error","exceptionStack":"Error: Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).\n at Object.runtimeConnectionTimeout (/home/pi/.vscode-server-insiders/extensions/kodetech.electron-debug-18.11.1/node_modules/vscode-chrome-debug-core/out/src/errors.js:91:12)\n at utils.retryAsync.catch.err (/home/pi/.vscode-server-insiders/extensions/kodetech.electron-debug-18.11.1/node_modules/vscode-chrome-debug-core/out/src/chrome/chromeConnection.js:110:49)\n at process._tickCallback (internal/process/next_tick.js:68:7)","exceptionId":"2010","timeTakenInMilliseconds":"10003.520802","requestType":"request"}}}
To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":false,"message":"Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:14400).","body":{"error":{"id":2010,"format":"Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).","variables":{"_error":"Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:14400","_timeout":"10000"}}}}
I'm stuck there and I would really like to be able to remote debugging an Electron app on a ARM64 from VSCode on another computer. Do someone have suggestions on how to fix this?
Restart button doesn't work. It just does nothing. Stopping the debugging process (with the button on the debug bar) works as expected.
Steps to reproduce:
This extension seems interesting, but I miss better explanation what it does. README states: "This is a fork of vscode-chrome-debug which automatically downloads and runs Electron".
First of all, why it downloads Electron? Where it is saves? When the download starts? IMHO this feature is useless.
Apparently, the extension adds new launch "type": "electron"
. Peering at the code, it tries to solve some problems of Electron debugging. I miss info in README, which problems and how are solved and what params the new type electron
accepts.
Hi,
Extension at Marketplace will download and use Electron v4.0.1.
Even with:
"devDependencies": {
"electron": "^8.0.0"
}
the application is launched with Electron v4.0.1
I am using angular and I want to be able to debug on localhost:4200 instead of open the transcompiled appDir is there a way to set the appDir to ocalhost:4200?
and is there a way to run the electron process with arguments?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.