microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.vscode/launch.json
314lines · modecode
| 1 | { |
| 2 | "version": "0.2.0", |
| 3 | "configurations": [ |
| 4 | { |
| 5 | "name": "Launch Extension", |
| 6 | "type": "extensionHost", |
| 7 | "request": "launch", |
| 8 | "runtimeExecutable": "${execPath}", |
| 9 | "args": [ |
| 10 | "--extensionDevelopmentPath=${workspaceRoot}" |
| 11 | ], |
| 12 | "sourceMaps": true, |
| 13 | "outFiles": [ |
| 14 | "${workspaceRoot}/src/**/*.js" |
| 15 | ], |
| 16 | "preLaunchTask": "gulp: build" |
| 17 | }, |
| 18 | { |
| 19 | "name": "Quick Launch Extension", |
| 20 | "type": "extensionHost", |
| 21 | "request": "launch", |
| 22 | "runtimeExecutable": "${execPath}", |
| 23 | "args": [ |
| 24 | "--extensionDevelopmentPath=${workspaceRoot}" |
| 25 | ], |
| 26 | "sourceMaps": true, |
| 27 | "outFiles": [ |
| 28 | "${workspaceRoot}/src/**/*.js" |
| 29 | ], |
| 30 | "preLaunchTask": "gulp: quick-build" |
| 31 | }, |
| 32 | { |
| 33 | "name": "Quick Debug Debugger", |
| 34 | "type": "node", |
| 35 | "request": "launch", |
| 36 | "program": "${workspaceRoot}/src/debugger/reactNativeDebugEntryPoint.ts", |
| 37 | "runtimeArgs": [ |
| 38 | "--harmony" |
| 39 | ], |
| 40 | "stopOnEntry": false, |
| 41 | "args": [ |
| 42 | "--server=4712" |
| 43 | ], // Use "debugServer": "4712", on launch.json of the instance to debug |
| 44 | "sourceMaps": true, |
| 45 | "outFiles": [ |
| 46 | "${workspaceRoot}/src/**/*.js" |
| 47 | ], |
| 48 | "preLaunchTask": "gulp: quick-build" |
| 49 | }, |
| 50 | { |
| 51 | "name": "Debug Debugger", |
| 52 | "type": "node", |
| 53 | "request": "launch", |
| 54 | "program": "${workspaceRoot}/src/debugger/reactNativeDebugEntryPoint.ts", |
| 55 | "runtimeArgs": [ |
| 56 | "--harmony" |
| 57 | ], |
| 58 | "stopOnEntry": false, |
| 59 | "args": [ |
| 60 | "--server=4712" |
| 61 | ], // Use "debugServer": "4712", on launch.json of the instance to debug |
| 62 | "sourceMaps": true, |
| 63 | "outFiles": [ |
| 64 | "${workspaceRoot}/src/**/*.js" |
| 65 | ], |
| 66 | "preLaunchTask": "gulp: build" |
| 67 | }, |
| 68 | { |
| 69 | "name": "Sample - Android App", |
| 70 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 71 | "type": "node", |
| 72 | "request": "launch", |
| 73 | "args": [ |
| 74 | "android" |
| 75 | ], |
| 76 | "runtimeArgs": [ |
| 77 | "--nolazy" |
| 78 | ], |
| 79 | "sourceMaps": true, |
| 80 | "outFiles": [ |
| 81 | "${workspaceRoot}/SampleApplication/.vscode/.react/**/*.js" |
| 82 | ] |
| 83 | }, |
| 84 | { |
| 85 | "name": "Sample - iOS App", |
| 86 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 87 | "type": "node", |
| 88 | "request": "launch", |
| 89 | "args": [ |
| 90 | "ios" |
| 91 | ], |
| 92 | "runtimeArgs": [ |
| 93 | "--nolazy" |
| 94 | ], |
| 95 | "sourceMaps": true, |
| 96 | "outFiles": [ |
| 97 | "${workspaceRoot}/SampleApplication/.vscode/.react/**/*.js" |
| 98 | ] |
| 99 | }, |
| 100 | { |
| 101 | "name": "Sample - Android Extension", |
| 102 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 103 | "type": "node", |
| 104 | "request": "launch", |
| 105 | "args": [ |
| 106 | "android" |
| 107 | ], |
| 108 | "runtimeArgs": [ |
| 109 | "--nolazy" |
| 110 | ], |
| 111 | "sourceMaps": true, |
| 112 | "outFiles": [ |
| 113 | "${workspaceRoot}/src/**/*.js" |
| 114 | ] |
| 115 | }, |
| 116 | { |
| 117 | "name": "Sample - iOS Extension", |
| 118 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 119 | "type": "node", |
| 120 | "request": "launch", |
| 121 | "args": [ |
| 122 | "ios" |
| 123 | ], |
| 124 | "runtimeArgs": [ |
| 125 | "--nolazy" |
| 126 | ], |
| 127 | "sourceMaps": true, |
| 128 | "outFiles": [ |
| 129 | "${workspaceRoot}/src/**/*.js" |
| 130 | ] |
| 131 | }, |
| 132 | { |
| 133 | "name": "Launch Tests", |
| 134 | "type": "extensionHost", |
| 135 | "request": "launch", |
| 136 | "runtimeExecutable": "${execPath}", |
| 137 | "args": [ |
| 138 | "--extensionDevelopmentPath=${workspaceRoot}", |
| 139 | "--extensionTestsPath=${workspaceRoot}/test" |
| 140 | ], |
| 141 | "stopOnEntry": false, |
| 142 | "sourceMaps": true, |
| 143 | "outFiles": [ |
| 144 | "${workspaceRoot}/src/**/*.js" |
| 145 | ], |
| 146 | "preLaunchTask": "gulp: build" |
| 147 | }, |
| 148 | { |
| 149 | "name": "Launch Localization Tests", |
| 150 | "type": "extensionHost", |
| 151 | "request": "launch", |
| 152 | "runtimeExecutable": "${execPath}", |
| 153 | "args": [ |
| 154 | "--locale=ru", |
| 155 | "--extensionDevelopmentPath=${workspaceRoot}", |
| 156 | "--extensionTestsPath=${workspaceRoot}/test/localization" |
| 157 | ], |
| 158 | "stopOnEntry": false, |
| 159 | "sourceMaps": true, |
| 160 | "outFiles": [ |
| 161 | "${workspaceRoot}/src/**/*.js" |
| 162 | ], |
| 163 | "preLaunchTask": "gulp: build" |
| 164 | }, |
| 165 | { |
| 166 | "name": "Run mocha", |
| 167 | "type": "node", |
| 168 | "protocol": "inspector", |
| 169 | "request": "launch", |
| 170 | "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", |
| 171 | "stopOnEntry": false, |
| 172 | // Command line arguments passed to the program. |
| 173 | "args": [ |
| 174 | "--ui", |
| 175 | "tdd", |
| 176 | // "--grep", "patternToFilterTestsBy", |
| 177 | "test/debugger/**/*.test.js", |
| 178 | "test/common/**/*.test.js" |
| 179 | ], |
| 180 | "cwd": "${workspaceRoot}", |
| 181 | "runtimeExecutable": null, |
| 182 | "env": { |
| 183 | "NODE_ENV": "development" |
| 184 | }, |
| 185 | "outFiles": [ |
| 186 | "${workspaceRoot}/src/**/*.js" |
| 187 | ], |
| 188 | "sourceMaps": true, |
| 189 | "preLaunchTask": "gulp: quick-build" |
| 190 | }, |
| 191 | { |
| 192 | "type": "node", |
| 193 | "request": "launch", |
| 194 | "protocol": "inspector", |
| 195 | "name": "Launch All Smoke Tests", |
| 196 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 197 | "cwd": "${workspaceFolder}/test/smoke", |
| 198 | "args": [ "--dont-delete-vsix" ], |
| 199 | "timeout": 240000, |
| 200 | "stopOnEntry": false, |
| 201 | "outFiles": [ |
| 202 | "${workspaceRoot}/src/**/*.js" |
| 203 | ], |
| 204 | "sourceMaps": true, |
| 205 | "preLaunchTask": "Build Smoke Tests" |
| 206 | }, |
| 207 | { |
| 208 | "type": "node", |
| 209 | "request": "launch", |
| 210 | "protocol": "inspector", |
| 211 | "name": "Launch Android Smoke Tests", |
| 212 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 213 | "cwd": "${workspaceFolder}/test/smoke", |
| 214 | "args": [ |
| 215 | "--dont-delete-vsix", |
| 216 | "--android" |
| 217 | ], |
| 218 | "timeout": 240000, |
| 219 | "stopOnEntry": false, |
| 220 | "outFiles": [ |
| 221 | "${workspaceRoot}/src/**/*.js" |
| 222 | ], |
| 223 | "sourceMaps": true, |
| 224 | "preLaunchTask": "Build Smoke Tests" |
| 225 | }, |
| 226 | { |
| 227 | "type": "node", |
| 228 | "request": "launch", |
| 229 | "protocol": "inspector", |
| 230 | "name": "Launch iOS Smoke Tests", |
| 231 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 232 | "cwd": "${workspaceFolder}/test/smoke", |
| 233 | "args": [ |
| 234 | "--dont-delete-vsix", |
| 235 | "--ios" |
| 236 | ], |
| 237 | "timeout": 240000, |
| 238 | "stopOnEntry": false, |
| 239 | "outFiles": [ |
| 240 | "${workspaceRoot}/src/**/*.js" |
| 241 | ], |
| 242 | "sourceMaps": true, |
| 243 | "preLaunchTask": "Build Smoke Tests" |
| 244 | }, |
| 245 | { |
| 246 | "type": "node", |
| 247 | "request": "launch", |
| 248 | "protocol": "inspector", |
| 249 | "name": "Launch All Smoke Tests (skip setup)", |
| 250 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 251 | "cwd": "${workspaceFolder}/test/smoke", |
| 252 | "args": [ |
| 253 | "--dont-delete-vsix", |
| 254 | "--skip-setup" |
| 255 | ], |
| 256 | "timeout": 240000, |
| 257 | "stopOnEntry": false, |
| 258 | "outFiles": [ |
| 259 | "${workspaceRoot}/src/**/*.js" |
| 260 | ], |
| 261 | "sourceMaps": true, |
| 262 | "preLaunchTask": "Build Smoke Tests" |
| 263 | }, |
| 264 | { |
| 265 | "type": "node", |
| 266 | "request": "launch", |
| 267 | "protocol": "inspector", |
| 268 | "name": "Launch Android Smoke Tests (skip setup)", |
| 269 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 270 | "cwd": "${workspaceFolder}/test/smoke", |
| 271 | "args": [ |
| 272 | "--dont-delete-vsix", |
| 273 | "--skip-setup", |
| 274 | "--android" |
| 275 | ], |
| 276 | "timeout": 240000, |
| 277 | "stopOnEntry": false, |
| 278 | "outFiles": [ |
| 279 | "${workspaceRoot}/src/**/*.js" |
| 280 | ], |
| 281 | "sourceMaps": true, |
| 282 | "preLaunchTask": "Build Smoke Tests" |
| 283 | }, |
| 284 | { |
| 285 | "type": "node", |
| 286 | "request": "launch", |
| 287 | "protocol": "inspector", |
| 288 | "name": "Launch iOS Smoke Tests (skip setup)", |
| 289 | "program": "${workspaceFolder}/test/smoke/node_modules/mocha/bin/_mocha", |
| 290 | "cwd": "${workspaceFolder}/test/smoke", |
| 291 | "args": [ |
| 292 | "--dont-delete-vsix", |
| 293 | "--skip-setup", |
| 294 | "--ios" |
| 295 | ], |
| 296 | "timeout": 240000, |
| 297 | "stopOnEntry": false, |
| 298 | "outFiles": [ |
| 299 | "${workspaceRoot}/src/**/*.js" |
| 300 | ], |
| 301 | "sourceMaps": true, |
| 302 | "preLaunchTask": "Build Smoke Tests" |
| 303 | }, |
| 304 | ], |
| 305 | "compounds": [ |
| 306 | { |
| 307 | "name": "Quick Extension + Debugger", |
| 308 | "configurations": [ |
| 309 | "Quick Launch Extension", |
| 310 | "Quick Debug Debugger" |
| 311 | ] |
| 312 | } |
| 313 | ] |
| 314 | } |
| 315 | |