DebugBar/README.en.md

129 lines
4.8 KiB
Markdown
Raw Normal View History

2022-07-30 20:58:10 +02:00
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md)
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
# D³ Debug Bar for OXID eShop
The debug bar enables the display of relevant debug information in the shop frontend.
2022-08-03 12:17:00 +02:00
![screenshot](screenshot.jpg "Screenshot")
2022-07-30 20:58:10 +02:00
## Table of content
2022-08-01 10:47:08 +02:00
- [Installation](#installation)
2022-08-05 09:25:49 +02:00
- [How to use](#how-to-use)
2022-07-30 20:58:10 +02:00
- [Changelog](#changelog)
- [Contributing](#contributing)
2022-08-01 10:47:08 +02:00
- [License](#license)
2022-08-05 09:25:49 +02:00
- [Further licenses and terms of use](#further-licenses-and-terms-of-use)
2022-07-30 20:58:10 +02:00
## Installation
This package requires an OXID eShop installed with Composer in a version defined in the [composer.json](composer.json).
Please enter the following section in the `composer.json` of your project:
```
"extra": {
"ajgl-symlinks": {
"maximebf/debugbar": {
"src/DebugBar/Resources": "source/out/debugbar"
}
},
"enable-patching": "true",
"patches": {
"oxid-esales/oxideshop-ce": {
"Add overridable functions for advanced profiling in Debug Bar": "https://git.d3data.de/D3Public/DebugBar/raw/branch/patches/overridablefunctions.patch"
2022-07-30 20:58:10 +02:00
}
}
}
```
Open a command line and navigate to the root directory of the shop (parent directory of source and vendor). Execute the following command. Adapt the path details to your installation environment.
```bash
2022-08-03 21:43:52 +02:00
php composer require d3/oxid-debugbar:^1.0
2022-07-30 20:58:10 +02:00
```
2022-08-03 21:43:52 +02:00
If necessary, please confirm that you allow `composer-symlinker` and `composer-patches` to execute code.
2022-08-01 10:47:08 +02:00
Have the files of the package `oxid-esales/oxideshop-ce` overwritten.
2022-07-30 20:58:10 +02:00
Activate the module in Shopadmin under "Extensions -> Modules".
2022-08-03 09:57:50 +02:00
## How to use
2022-08-05 09:25:49 +02:00
__Please note that the DebugBar contains security-relevant information. It should therefore not be activated under any circumstances in a freely accessible installation.__
2022-08-03 09:57:50 +02:00
The DebugBar displays the following tabs:
- Messages
2022-08-05 09:25:49 +02:00
can contain individual debug output. The messages can be set within the PHP code with `debugVar($message)` and corresponds to the OXID function `dumpVar(...)`
2022-08-03 09:57:50 +02:00
- Request
shows all information from GET and POST requests, as well as session, cookie and server variables
- Timeline
displays all areas defined with `startProfile` and `stopProfile` with single and summed execution time as well as a waterfall diagram
2022-08-05 09:25:49 +02:00
- Shop
shows basic shop information (edition, versions, theme information)
- Configuration
provides all configuration settings of the shop from database and config files
- Smarty
lists all variables of the template engine that are available on the current shop page
2022-08-03 09:57:50 +02:00
- Monolog
lists all log messages passed to the Monolog Logger
- Database
shows all database queries necessary to generate the current page
2022-07-30 20:58:10 +02:00
## Changelog
See [CHANGELOG](CHANGELOG.md) for further informations.
## Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
2022-08-03 21:43:52 +02:00
## License
2022-07-30 20:58:10 +02:00
(status: 2022-07-30)
Distributed under the GPLv3 license.
```
Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
This software is distributed under the GNU GENERAL PUBLIC LICENSE version 3.
```
2022-07-31 21:58:12 +02:00
For full copyright and licensing information, please see the [LICENSE](LICENSE.md) file distributed with this source code.
2022-08-03 21:43:52 +02:00
## Further licenses and terms of use
2022-07-31 21:58:12 +02:00
### Smarty collector
([https://github.com/Junker/php-debugbar-smarty/blob/master/LICENSE](https://github.com/Junker/php-debugbar-smarty/blob/master/LICENSE) - status 2022-07-31)
```
The MIT License (MIT)
Copyright (c) 2016 Dmitry Kosenkov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```