| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,18 +74,11 @@ In order to track down possible bugs, you will need a debug buid so you | |||
| 74 | 74 | can get a backtrace with [gdb](http://www.gnu.org/software/gdb/) or | |
| 75 | 75 | [lldb](http://lldb.llvm.org/). | |
| 76 | 76 | ||
| 77 | - In order to do so, follow these steps: | ||
| 77 | + If you're building for the first time, run `npm run installDebug` (or `BUILD_ONLY=true npm link`) | ||
| 78 | 78 | ||
| 79 | - 1. `BUILD_ONLY=true npm install` (or `BUILD_ONLY=true npm link`) | ||
| 80 | - 3. `node-gyp rebuild --debug` (the same as `node-gyp clean configure --debug build`) | ||
| 79 | + Note that you should run `rm -rf build/Release` (or `rd /s /q build/Release` in Windows) to make sure a release build doesn't get loaded instead of the debug build. | ||
| 81 | 80 | ||
| 82 | - If you're doing a subsequent rebuild of NodeGit in debug, the clean function will cause | ||
| 83 | - a lot of extraneous recompilation of things you probably didn't change (like the vendor | ||
| 84 | - dependencies). | ||
| 85 | - | ||
| 86 | - 1. `BUILD_ONLY=true npm install` (or `BUILD_ONLY=true npm link`) | ||
| 87 | - 2. `rm -rf build/Release` to make sure a release build doesnt get loaded instead of the debug build. | ||
| 88 | - 3. `node-gyp configure build --debug` | ||
| 81 | + If you're doing a subsequent rebuild of NodeGit in debug, the clean function will cause a lot of extraneous recompilation of things you probably didn't change (like the vendor dependencies). If you need to regenerate the C++ files and recompile you can run `npm run rebuildDebug`, or `npm run recompileDebug` if you've manually updated the C++ files and don't want them to regenerate. | ||
| 89 | 82 | ||
| 90 | 83 | ### Installing dependencies: ### | |
| 91 | 84 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,15 +85,22 @@ | |||
| 85 | 85 | "mocha": "mocha test/runner test/tests", | |
| 86 | 86 | "mochaDebug": "mocha --debug-brk test/runner test/tests", | |
| 87 | 87 | "test": "npm run lint && npm run cov", | |
| 88 | + | ||
| 88 | 89 | "generateJson": "node generate/scripts/generateJson", | |
| 89 | 90 | "generateNativeCode": "node generate/scripts/generateNativeCode", | |
| 90 | 91 | "generateMissingTests": "node generate/scripts/generateMissingTests", | |
| 92 | + | ||
| 93 | + | ||
| 94 | + "prepublish": "node lifecycleScripts/prepareForBuild.js", | ||
| 91 | 95 | "publish": "node-pre-gyp package && node-pre-gyp publish", | |
| 96 | + | ||
| 92 | 97 | "install": "node lifecycleScripts/install", | |
| 98 | + "installDebug": "BUILD_DEBUG=true npm install", | ||
| 93 | 99 | "postinstall": "node lifecycleScripts/clean", | |
| 94 | - "recompile": "BUILD_ONLY=true npm install", | ||
| 95 | - "rebuild": "BUILD_ONLY=true node generate && node-gyp configure build", | ||
| 96 | - "buildDebug": "node generate && BUILD_DEBUG=true npm install", | ||
| 97 | - "prepublish": "node lifecycleScripts/prepareForBuild.js" | ||
| 100 | + | ||
| 101 | + "recompile": "node-gyp configure build", | ||
| 102 | + "rebuild": "node generate && node-gyp configure build", | ||
| 103 | + "recompileDebug": "node-gyp configure --debug build", | ||
| 104 | + "rebuildDebug": "node generate && node-gyp configure --debug build" | ||
| 98 | 105 | } | |
| 99 | 106 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments