microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.vscode/launch.json
124lines · 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 | "outDir": "${workspaceRoot}/out", |
| 14 | "preLaunchTask": "build" |
| 15 | }, |
| 16 | { |
| 17 | "name": "Debug Debugger", |
| 18 | "type": "node", |
| 19 | "request": "launch", |
| 20 | "program": "${workspaceRoot}/src/debugger/reactNativeDebugEntryPoint.ts", |
| 21 | "runtimeArgs": [ |
| 22 | "--harmony" |
| 23 | ], |
| 24 | "stopOnEntry": false, |
| 25 | "args": [ |
| 26 | "--server=4712" |
| 27 | ], // Use "debugServer": "4712", on launch.json of the instance to debug |
| 28 | "sourceMaps": true, |
| 29 | "outDir": "${workspaceRoot}/out", |
| 30 | "preLaunchTask": "build" |
| 31 | }, |
| 32 | { |
| 33 | "name": "Sample - Android App", |
| 34 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 35 | "type": "node", |
| 36 | "request": "launch", |
| 37 | "args": [ |
| 38 | "android" |
| 39 | ], |
| 40 | "runtimeArgs": [ |
| 41 | "--nolazy" |
| 42 | ], |
| 43 | "sourceMaps": true, |
| 44 | "outDir": "${workspaceRoot}/SampleApplication/.vscode/.react/" |
| 45 | }, |
| 46 | { |
| 47 | "name": "Sample - iOS App", |
| 48 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 49 | "type": "node", |
| 50 | "request": "launch", |
| 51 | "args": [ |
| 52 | "ios" |
| 53 | ], |
| 54 | "runtimeArgs": [ |
| 55 | "--nolazy" |
| 56 | ], |
| 57 | "sourceMaps": true, |
| 58 | "outDir": "${workspaceRoot}/SampleApplication/.vscode/.react/" |
| 59 | }, |
| 60 | { |
| 61 | "name": "Sample - Android Extension", |
| 62 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 63 | "type": "node", |
| 64 | "request": "launch", |
| 65 | "args": [ |
| 66 | "android" |
| 67 | ], |
| 68 | "runtimeArgs": [ |
| 69 | "--nolazy" |
| 70 | ], |
| 71 | "sourceMaps": true, |
| 72 | "outDir": "${workspaceRoot}/out/" |
| 73 | }, |
| 74 | { |
| 75 | "name": "Sample - iOS Extension", |
| 76 | "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js", |
| 77 | "type": "node", |
| 78 | "request": "launch", |
| 79 | "args": [ |
| 80 | "ios" |
| 81 | ], |
| 82 | "runtimeArgs": [ |
| 83 | "--nolazy" |
| 84 | ], |
| 85 | "sourceMaps": true, |
| 86 | "outDir": "${workspaceRoot}/out/" |
| 87 | }, |
| 88 | { |
| 89 | "name": "Launch Tests", |
| 90 | "type": "extensionHost", |
| 91 | "request": "launch", |
| 92 | "runtimeExecutable": "${execPath}", |
| 93 | "args": [ |
| 94 | "--extensionDevelopmentPath=${workspaceRoot}", |
| 95 | "--extensionTestsPath=${workspaceRoot}/out/test" |
| 96 | ], |
| 97 | "stopOnEntry": false, |
| 98 | "sourceMaps": true, |
| 99 | "outDir": "${workspaceRoot}/out", |
| 100 | "preLaunchTask": "build" |
| 101 | }, |
| 102 | { |
| 103 | "name": "Run mocha", |
| 104 | "type": "node2", |
| 105 | "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", |
| 106 | "stopOnEntry": false, |
| 107 | // Command line arguments passed to the program. |
| 108 | "args": [ |
| 109 | "--ui", |
| 110 | "tdd", |
| 111 | // "--grep", "patternToFilterTestsBy", |
| 112 | "out/test/debugger/**/*.test.js", |
| 113 | "out/test/common/**/*.test.js" |
| 114 | ], |
| 115 | "cwd": "${workspaceRoot}", |
| 116 | "runtimeExecutable": null, |
| 117 | "env": { |
| 118 | "NODE_ENV": "development" |
| 119 | }, |
| 120 | "sourceMaps": true, |
| 121 | "outDir": "${workspaceRoot}/out" |
| 122 | } |
| 123 | ] |
| 124 | } |
| 125 | |