Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ The procedure is the same as above, except:
* Reload the debugger UI first, then reload the page you just modified. The line "Mobile device connected." should appear in the UI's output pane.
* You should now be able to evaluate code remotely, set breakpoints, etc.

You can also preprocess your JS code to debug it offline:

* Go to the config inside config folder (you can create a config.local.js file to override default config options).
* Enable the offline rewriter process setting `config.runOfflineRewriter = true` (you can disable the file server in this mode)
* Set the output folder where your debugging-enabled scripts will be placed, in the property `config.outputDir`
* In this mode, you can let Aardwolf to inject the debugging support script in your index file. You can do so by configuring `indexFile`, `whereToInsertAardwolf` and `aardwolfScript` properties in the config file.


Debugging processed or minified code
----------------------------------------------------------------------------------------------------
Expand All @@ -98,6 +105,13 @@ In most languages, making the modification should be pretty straightforward. PHP
Now you should be ready to debug processed code. And since Aardwolf has access to the original files, its UI will display the original, unprocessed code for easier debugging.


Solving memory issues
----------------------------------------------------------------------------------------------------

In some cases in which there are many JavaScript files to debug, you could face a memory issue. If you find that the application is running slowly, you can use `white-list` and `black-list` config properties and choose only the javascript files you want to debug.
Using one of these properties, only the selected files will be processed by Aardwolf, improving application performance.


How it works
----------------------------------------------------------------------------------------------------

Expand Down