Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:solo-io/squash
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# NodeJS debugger | ||
|
||
There are two different debugger options: | ||
* nodejs - for microservices running Node JS version below 8 (using port 5858) | ||
* nodejs8 - for Node JS version 8+ (using port (9229) | ||
|
||
Additionally, name of the application ("node") often needs to be provided to squash to be able to find the correct process ID. | ||
* From command line - use `"-p node"`. | ||
* When using VSCode set `"vs-squash.process-name"` to `"node"` in the workspace settings file (*select "Preferences", "Settings" and click on | ||
the "Workspace Settings" tab*) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
# Python debugger for VSCode | ||
|
||
Please refer to the following [document](https://code.visualstudio.com/docs/python/debugging#_remote-debugging) | ||
for instructions on setting up remote debugging. | ||
|
||
Specifically, | ||
- Install [ptvsd library](https://pypi.org/project/ptvsd/) | ||
- Add code below to the startup .py file, replacing the *passphrase* and *port number* as desired.<br> | ||
|
||
> import ptvsd<br> | ||
> ptvsd.enable_attach("my_secret", address = ('0.0.0.0', 3000))<br> | ||
- In VSCode, set `"vs-squash.pythonSecret"` to the correct passphrase (`"my_secret"` in this case) in the workspace settings | ||
file (*select "Preferences", "Settings" and click on the "Workspace Settings" tab*) | ||
|