From 7ae2c7a11572a9387e3c22761209bf8f19096edd Mon Sep 17 00:00:00 2001 From: Chris Chou Date: Thu, 7 Sep 2017 16:12:09 +1200 Subject: [PATCH] add vscode debugging config update readme.md --- .vscode/launch.json | 13 +++++++++++++ readme.md | 6 ++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000000..4981a61b8f17 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Hyper", + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", + "program": "${workspaceRoot}/app/index.js", + "protocol": "inspector" + } + ] +} diff --git a/readme.md b/readme.md index 8c03555fbf14..7457687f6402 100644 --- a/readme.md +++ b/readme.md @@ -37,8 +37,10 @@ choco install hyper 2. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device 3. Install the dependencies: `yarn` 4. Build the code and watch for changes: `yarn run dev` -5. In another terminal tab/window/pane, run the app: `yarn run app` - +5. To run `hyper` + * `yarn run app` from another terminal tab/window/pane + * If you are using **Visual Studio Code**, select `Launch Hyper` in debugger configuration to launch a new Hyper instance with debugger attached. + To make sure that your code works in the finished application, you can generate the binaries like this: ```bash