1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 05:16:10 +01:00

Fixes #1010 — adds debuginfo to Contributing.md (#1011)

This commit is contained in:
Dan Burzo 2017-08-23 02:48:26 +03:00 committed by Ian Storm Taylor
parent 239d97fcad
commit 5712bcb2af

View File

@ -80,4 +80,6 @@ Slate aims to targeted all of the modern browsers, and eventually the modern mob
[Here's a helpful page](https://github.com/Microsoft/vscode/wiki/IME-Test) detailing how to test various input scenarios on Windows, Mac and Linux.
## Debugging Slate methods
Slate makes use of [debug](https://github.com/visionmedia/debug) to log information about various methods. You can [enable the logger in the browser](https://github.com/visionmedia/debug#browser-support) by setting `localStorage.debug = "*"` (to log methods on all modules) or to a single namespace (e.g. `slate:editor`). Look for `const debug = Debug('<namespace>')` to get the namespace of various modules.