microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.vscode/launch.json
184lines · 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": "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": "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": "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": "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": "build" |
| 147 | }, |
| 148 | { |
| 149 | "name": "Run mocha", |
| 150 | "type": "node", |
| 151 | "protocol": "inspector", |
| 152 | "request": "launch", |
| 153 | "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", |
| 154 | "stopOnEntry": false, |
| 155 | // Command line arguments passed to the program. |
| 156 | "args": [ |
| 157 | "--ui", |
| 158 | "tdd", |
| 159 | // "--grep", "patternToFilterTestsBy", |
| 160 | "test/debugger/**/*.test.js", |
| 161 | "test/common/**/*.test.js" |
| 162 | ], |
| 163 | "cwd": "${workspaceRoot}", |
| 164 | "runtimeExecutable": null, |
| 165 | "env": { |
| 166 | "NODE_ENV": "development" |
| 167 | }, |
| 168 | "outFiles": [ |
| 169 | "${workspaceRoot}/src/**/*.js" |
| 170 | ], |
| 171 | "sourceMaps": true, |
| 172 | "preLaunchTask": "quick-build" |
| 173 | } |
| 174 | ], |
| 175 | "compounds": [ |
| 176 | { |
| 177 | "name": "Quick Extension + Debugger", |
| 178 | "configurations": [ |
| 179 | "Quick Launch Extension", |
| 180 | "Quick Debug Debugger" |
| 181 | ] |
| 182 | } |
| 183 | ] |
| 184 | } |