Skip to content

Commit

Permalink
Merge branch 'master' of github.com:railsware/black-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed May 16, 2017
2 parents e63751d + 3524f70 commit 079aed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions docs/vscodedebugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The contents of these files should be as follows.
"name": "Electron Main",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"program": "${workspaceRoot}/compiled/src/main/Main.js",
"protocol": "legacy",
"protocol": "inspector",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}/",
Expand Down Expand Up @@ -108,13 +108,11 @@ Note. If the code has been modified and no updates to dependent node modules wer

Source maps are enabled for the black-screen project which allows the Typescript code to be debugged. Source maps map the Typescript code to the generated (transpiled) Javascript code, with the Javascript code being what's executed by node.js.

However, you can still debug the generated Javascript files by placing breakpoints in generated Javascipt files under the `compiled\src` folder.

To enter debugging mode select the <b>Debug</b> icon on the left hand side menu. Or alternatively, select the `Shift + ⌘ + d` (or `Shift + Ctrl + d`) keys.

![debug process](images/debug_renderer_process.png "debug process")

To launch a debug session, from the top left hand side of the <b>Debug</b> window select `Debug rendered process` and press the Play button.
Note. A breakpoint needs to be placed in the code prior to launching a debug session, to allow stepping through code.

These instructions were tested on vscode version 1.10.2.
These instructions were tested on vscode version 1.12.1.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "black-screen",
"productName": "Black Screen",
"description": "A terminal emulator for the 21st century.",
"version": "0.2.145",
"version": "0.2.146",
"main": "compiled/src/main/Main.js",
"author": "Volodymyr Shatskyi <shockone89@gmail.com>",
"repository": {
Expand Down

0 comments on commit 079aed5

Please sign in to comment.