forked from botpress/v12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
161 lines (161 loc) · 4.79 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"runtimeVersion": "12.18.1",
"request": "launch",
"name": "Debug App",
"program": "${workspaceFolder}/packages/bp/dist/index.js",
"cwd": "${workspaceFolder}/packages/bp/dist",
"args": ["start"],
"env": {
"BP_MODULES_PATH": "${workspaceFolder}/modules:${workspaceFolder}/internal-modules",
"NODE_PATH": "${workspaceFolder}/packages/bp/dist",
"DEBUG": "bp:none",
"BLUEBIRD_DEBUG": "1",
"TELEMETRY_URL": "https://telemetry.botpress.dev/ingest"
},
"smartStep": true,
"outFiles": [
"${workspaceFolder}/packages/bp/dist/**/*.js",
"${workspaceFolder}/modules/**/dist/**/*.js",
"${workspaceFolder}/private-modules/**/dist/**/*.js",
"!${workspaceFolder}/**/node_modules/**/*.js"
],
"skipFiles": ["**/node_modules/**", "<node_internals>/**"],
"console": "internalConsole",
"sourceMaps": true,
"autoAttachChildProcesses": true
},
{
"type": "node",
"runtimeVersion": "12.18.1",
"request": "launch",
"name": "Debug Stan",
"program": "${workspaceFolder}/packages/bp/dist/index.js",
"cwd": "${workspaceFolder}",
"args": [
"nlu",
"--languageURL=http://localhost:3100",
"--ducklingURL=http://localhost:8000",
"--modelCacheSize=1gb",
"--silent"
],
"protocol": "auto",
"env": {
"BP_MODULES_PATH": "${workspaceFolder}/modules:${workspaceFolder}/internal-modules",
"NODE_PATH": "${workspaceFolder}/packages/bp/dist",
"DEBUG": "bp:none",
"BLUEBIRD_DEBUG": "1"
},
"smartStep": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/modules/**/dist/**/*.js",
"${workspaceFolder}/private-modules/**/dist/**/*.js",
"!${workspaceFolder}/**/node_modules/**/*.js"
],
"console": "integratedTerminal",
"sourceMaps": true,
"autoAttachChildProcesses": true
},
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests",
"cwd": "${workspaceFolder}",
"env": {
"NATIVE_EXTENSIONS_DIR": "./build/native-extensions"
},
"args": [
"--inspect-brk",
"${workspaceFolder}/node_modules/.bin/jest",
"--runInBand",
"--rootDir=${workspaceFolder}",
"-c=${workspaceFolder}/jest.config.js"
],
"windows": {
"args": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand",
"--rootDir=${workspaceFolder}",
"-c=${workspaceFolder}/jest.config.js"
]
},
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true,
"autoAttachChildProcesses": true
},
{
"type": "node",
"request": "launch",
"name": "Debug Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}", "--config", "jest.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug Jest Integration Tests",
"cwd": "${workspaceFolder}",
"env": {
"NATIVE_EXTENSIONS_DIR": "./build/native-extensions",
"JEST_TIMEOUT": "30000"
},
"args": [
"--inspect-brk",
"${workspaceFolder}/node_modules/.bin/jest",
"--runInBand",
"--detectOpenHandles",
"-c",
"jest.e2e.config.js",
"all"
],
"windows": {
"args": ["--inspect-brk", "${workspaceRoot}/node_modules/jest/bin/jest.js", "--runInBand"]
},
"outFiles": ["${workspaceFolder}/out/"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true,
"autoAttachChildProcesses": true
},
{
"name": "(lldb) ",
"type": "lldb",
"request": "launch",
"program": "node",
"args": ["test/start.js"],
"env": {
"BP_MODULES_PATH": "../../modules",
"NODE_PATH": "./"
},
"cwd": "${workspaceFolder}/packages/bp/dist"
},
{
"name": "(lldb) CRFSuite ",
"type": "lldb",
"request": "launch",
"program": "node",
"args": ["test/start.js"],
"cwd": "${workspaceFolder}/src/bp/ml/crfsuite"
},
{
"name": "(lldb) FastText ",
"type": "lldb",
"request": "launch",
"program": "node",
"args": ["test/start.js"],
"cwd": "${workspaceFolder}/src/bp/ml/fasttext"
}
]
}