You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+159-8Lines changed: 159 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,18 @@
1
-
FireGento_Core
1
+
FireGento_Debug
2
2
=====================
3
3
This extension provides some debbuging functionality for Magento.
4
4
5
5
Facts
6
6
-----
7
-
- version: 1.3.0
7
+
- version: 1.4.0
8
8
-[extension on GitHub](https://github.com/firegento/firegento)
9
9
10
+
10
11
Description
11
12
-----------
12
13
This extension provides some debugging functionality for Magento.
13
14
This includes:
15
+
14
16
- List all installed modules incl. their dependencies in the Magento backend
15
17
- Activate/Deactivate non-core modules via the Magento backend
16
18
- Check all installed modules for rewrite conflicts
@@ -19,6 +21,161 @@ This includes:
19
21
- Show detailed system information in the backend
20
22
- Provide logging interfaces for [ChromePhp](http://www.chromephp.com/), [FirePHP](http://www.firephp.org/) and [Firelogger](http://firelogger.binaryage.com/)
21
23
24
+
## Installation
25
+
Install the files using one of the following methods:
- Create a composer.json into your project like the following sample:
33
+
34
+
```json
35
+
{
36
+
...
37
+
"require": {
38
+
"firegento/debug":"*"
39
+
},
40
+
"repositories": [
41
+
{
42
+
"type": "composer",
43
+
"url": "http://packages.firegento.com"
44
+
}
45
+
],
46
+
"extra":{
47
+
"magento-root-dir": "./"
48
+
}
49
+
}
50
+
51
+
```
52
+
53
+
- Then from your composer.json folder: `php composer.phar install` or `composer install`
54
+
55
+
### Manually
56
+
You can copy the files from the 'src' folder of this repository to the same folders of your installation
57
+
58
+
Once the files are installed:
59
+
60
+
- Clear the cache, logout from the admin panel and then login again.
61
+
62
+
A new Menu item named "**FIREGENTO**" will appear in the admin area
63
+
64
+
## Logging functionality
65
+
This module exposes some logging functionality for use in your own extensions.
66
+
67
+
You can:
68
+
69
+
- log data to a file that you specify in the configuration
70
+
- log data to the browser using either: [ChromePhp](http://www.chromephp.com/), [FirePHP](http://www.firephp.org/) or [Firelogger](http://firelogger.binaryage.com/)
71
+
72
+
The extension can be configured under FIREGENTO > Configuration
73
+
74
+

75
+
76
+
Here you can change the name of the log file which will be written (by default firegento.log) if you select "Force Logging" then the log file will be written to irrespective of the the configuration setting to enable logging "Developer > Log Settings > Enabled".
This statement will take the output of `$product->debug()` and log it to the configured file.
87
+
88
+
There is also a utilty method available `debug()` you can use this method to log large objects such as sales/quote, sales/order or other objects which are instances of Varien_Object internally the debug() method of this object will be called, and the output logged to using `FireGento_Debug_Helper_Log::log()`
It is also possible to send the output of the logging to the browser and have it displayed by [ChromePhp](http://www.chromephp.com/), [FirePHP](http://www.firephp.org/) or [Firelogger](http://firelogger.binaryage.com/) in order to do this, you must make sure that you have enabled the appropriate option in the configuration, and then you can simply use one of the following statements:
Here all the installed modules including their dependencies are listed.
123
+

124
+
125
+
You will see:
126
+
127
+
- The modules Namespace and name
128
+
- the code pool to which it belongs
129
+
- the current status
130
+
- the path to the extension in the filesystem
131
+
- if the path exists or not
132
+
- if the config.xml exists
133
+
- the version of the extension
134
+
- any dependencies defined for the extension
135
+
136
+
Non system extensions can be activated/decativated by clicking on the link in the Action column.
137
+
138
+
### Diagnostic > Check Rewrites
139
+
140
+
A convenient overview of rewritten classes is displayed here.
141
+
When a classpath is overwritten by an extension, you will see the name of the class which overrides it, and the name of the active class for that classpath. In the case of a rewrite conflict the status column displays a red "not ok" status. You will see that the Active class differs from the rewrite class.
Here there is a rewrite conflict, and the rewrite which is not active is shown with a red "not ok" status
149
+
150
+
there is a file called firegento.php which you can install in the root of your magento instance, this allows you to check the status of rewrites without installing the whole Firegento_Debug extension.
151
+
152
+
### Diagnostic > Check Events
153
+
This allows you to see all events in your system and which observers are listening for them. When more than one observer is bound to the event, then they are listed under each other, in the column "Location"
154
+
155
+

156
+
157
+
### Diagnostic > Check System
158
+
Here you will see information about the system, which is divided into 5 areas:
0 commit comments