GithubHelp home page GithubHelp logo

vscode-electron-debug's Introduction

Electron debug extension

This extension has been deprecated, its functionality was rolled into the vscode-kha extension.

vscode-electron-debug's People

Contributors

roblourens avatar robdangerous avatar ericcornelson avatar auchenberg avatar jalissia avatar mrcrane avatar dependabot[bot] avatar changsi-an avatar eramitmittal avatar shenniey avatar digeff avatar marvinhagemeister avatar msft-cwells avatar nvh95 avatar mslaguana avatar nojvek avatar ahmadawais avatar kieferrm avatar shrinktofit avatar mlewand avatar martinma avatar mjimison avatar msftgits avatar lipis avatar octref avatar pertrai1 avatar stristr avatar gitter-badger avatar tchaffee avatar basteln3rk avatar

Stargazers

XeroZh avatar hlizard avatar Ebram Tawfik avatar

Watchers

 avatar James Cloos avatar Ebram Tawfik avatar

vscode-electron-debug's Issues

Remote debugging on a Raspberry Pi

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

  • VS Code Version: 1.26.1

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:

  1. Launch an app in Electron
  2. Press the Restart button in the debug bar.

Better description in README

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.

Lunch localhost url instead of appDir

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.