Skip to content

Commit 5b4c232

Browse files
authored
Merge pull request botpress#86 from wac2007/master
Debugging Docs - Visual Studio Code
2 parents 81bb452 + 990380d commit 5b4c232

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
* [Advanced Topics](advanced-topics.md)
55
* [CLI Reference](cli-reference.md)
66
* [Core Reference](core-reference.md)
7+
* [Debugging](debugging.md)

docs/debugging.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Debugging
2+
3+
Here you find how to configure your favorite IDE to debug your code.
4+
5+
## Visual Studio Code
6+
Press f1 and look for launch.json. Inside the "configurations" array, insert the following object:
7+
```json
8+
{
9+
"type": "node",
10+
"request": "launch",
11+
"name": "Launch Program",
12+
"cwd": "${workspaceRoot}",
13+
"port": 5859,
14+
"program": "${workspaceRoot}/node_modules/botpress/bin/botpress",
15+
"runtimeExecutable": "node",
16+
"runtimeArgs": [
17+
"--debug"
18+
],
19+
"args": [ "start" ],
20+
"stopOnEntry": false
21+
}
22+
```

0 commit comments

Comments
 (0)