<commit_before>### debugger.html

This is a prototype debugger written without any XUL and based on React and Redux.

[![Build Status](https://travis-ci.org/jlongster/debugger.html.svg?branch=master)](https://travis-ci.org/jlongster/debugger.html)

#### Getting Started

```js
$ npm install
$ npm start
```

Start Firefox in remote debugging mode and go to a tab you want to debug.

```
$ /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin --start-debugger-server 6080
```

Go to the Debugger!

```
$ open index.html
```


#### Advanced

##### User Configuration

You can add an `environment.json` to set user environmental variables, like the firefox source path. Start by copying the environment.sample.

```json
{ "firefoxSrcPath" : "/Users/jlaster/src/mozilla/gecko-dev"}
```

##### Remote Debugging
If you'd like to connect an existing browser to debugger.html, you can press "shift+F2" and type "listen" with the port 6080.<commit_msg>improve the advanced section of the README<commit_after>### debugger.html

This is a prototype debugger written without any XUL and based on React and Redux.

[![Build Status](https://travis-ci.org/jlongster/debugger.html.svg?branch=master)](https://travis-ci.org/jlongster/debugger.html)

#### Getting Started

```js
$ npm install
$ npm start
```

Start Firefox in remote debugging mode and go to a tab you want to debug.

```
$ /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin --start-debugger-server 6080
```

Go to the Debugger!

```
$ open index.html
```


#### Advanced :see_no_evil:

##### User Configuration

You can create an `environment.json` to set user environmental variables, like the firefox source path. Start by copying the [`environment.sample`](https://github.com/jlongster/debugger.html/blob/master/environment.sample) file and update the source code location.

```json
{ "firefoxSrcPath" : "/Users/jlaster/src/mozilla/gecko-dev"}
```

 * **firefoxSrcPath**: _absolute path to local firefox source code_

**NOTE**: Firefox source code is available on github at [gecko-dev](https://github.com/mozilla/gecko-dev/).  For a faster download add the depth option to your git clone `git clone --depth=1 https://github.com/mozilla/gecko-dev.git`  The MDN article [Working with Mozilla source code](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code) has a number of other options.

##### Remote Debugging
If you'd like to connect an existing Firefox browser to debugger.html, you can press `shift+F2` to open the developer toolbar and type `listen 6080` into the developer toolbar console.
{'fraction_non_alphanumeric': 0.12475859405175743, 'fraction_numerical': 0.007338740826573967, 'mean_word_length': 4.6798245614035086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165472', 'n_tokens_mistral': 842, 'n_tokens_neox': 762, 'n_words': 267}