Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.2 KB

developing_locally.md

File metadata and controls

54 lines (36 loc) · 1.2 KB

Installing the Extension in Chrome

1. Download the Extension

git clone [email protected]:MarionetteLabs/marionette.inspector.git

2. Build the extension

grunt build

3. Install in Chrome

1. go to the Extensions tab in chrome > Window
2. check the "Developer Mode" checkbox
3. click the "Load unpacked extension" and select the extension folder in the repo

Logging

Local logging can be turned on easily by enabling the two logger classes (debug, logger)

https://github.com/MarionetteLabs/marionette.inspector/blob/master/extension/js/common/util/Logger.js#L14 https://github.com/MarionetteLabs/marionette.inspector/blob/master/extension/js/common/util/debug.js#L4

debug is the window agent logger logger is the inspector logger


agent

Testing locally

A good way to test the agent is to run it locally in the index.html of the app you want to inspect.

<script src="http://localhost:4001/build/localAgent.js"></script>
cd extension/js/agent
python -m SimpleHTTPServer 4001

Including the localAgent directly this way, is easier than debugging the agent when it's injected into the window via the extension.