Go to file
Daniel Seifert 81acc92151
fix shop dependency
2023-01-04 09:00:48 +01:00
Application add option to show DebugBar only if logged in user is an admin user 2022-08-17 15:23:06 +02:00
Core add option to show DebugBar only if logged in user is an admin user 2022-08-17 15:23:06 +02:00
Modules check for not existing controller function 2022-10-06 14:20:01 +02:00
Setup add option to show DebugBar only if logged in user is an admin user 2022-08-17 15:23:06 +02:00
.gitignore apply code style rules 2022-08-03 09:17:43 +02:00
.php-cs-fixer.php Initial commit 2022-07-30 23:39:46 +02:00
CHANGELOG.md adjust version informations 2023-01-03 15:41:57 +01:00
IntelliSenseHelper.php collect unhandled exceptions, errors from Smarty and PHP 2022-08-14 01:08:02 +02:00
LICENSE.md Initial commit 2022-07-30 23:39:46 +02:00
README.en.md show warning on activation if asset files doesn't exist 2022-08-14 23:13:06 +02:00
README.md show warning on activation if asset files doesn't exist 2022-08-14 23:13:06 +02:00
ToDo.md add option to show DebugBar only if logged in user is an admin user 2022-08-17 15:23:06 +02:00
composer.json fix shop dependency 2023-01-04 09:00:48 +01:00
metadata.php adjust version informations 2023-01-03 15:41:57 +01:00
phpstan.neon add option to show DebugBar only if logged in user is an admin user 2022-08-17 15:23:06 +02:00
phpunit.xml Initial commit 2022-07-30 23:39:46 +02:00
screenshot.jpg adjust documentation, add todo list 2022-08-05 09:41:07 +02:00
services.yaml make installable in OXID CE 6.12 2022-08-19 23:17:30 +02:00

README.md

deutsche Version english version

D³ Debug Bar für OXID eShop

Die Debug Bar ermöglicht die Darstellung relevanter Debuginformationen im Shopfrontend.

screenshot

Inhaltsverzeichnis

Installation

Dieses Paket erfordert einen mit Composer installierten OXID eShop in einer in der composer.json definierten Version.

Bitte tragen Sie den folgenden Abschnitt in die composer.json Ihres Projektes ein:

  "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"
      }
    }
  }

Öffnen Sie eine Kommandozeile und navigieren Sie zum Stammverzeichnis des Shops (Elternverzeichnis von source und vendor). Führen Sie den folgenden Befehl aus. Passen Sie die Pfadangaben an Ihre Installationsumgebung an.

php composer require d3/oxid-debugbar:^1.0

Sofern nötig, bestätigen Sie bitte, dass Sie composer-symlinker und composer-patches erlauben, Code auszuführen.

Lassen Sie die Dateien des Paketes oxid-esales/oxideshop-ce überschreiben.

Aktivieren Sie das Modul im Shopadmin unter "Erweiterungen -> Module".

Verwendung

Bitte beachten Sie, dass die DebugBar sicherheitsrelevante Informationen enthält. Diese sollte daher unter keinen Umständen in einer frei zugänglichen Installation aktiviert sein.

Die DebugBar stellt folgende Tabs dar:

  • Messages kann individuelle Debugausgaben enthalten. Die Nachrichten können innerhalb des PHP-Codes mit debugVar($message) gesetzt werden und entspricht der OXID-Funktion dumpVar(...).
  • Request zeigt alle Angaben aus GET- und POST-Requests, sowie Session-, Cookie- und Servervariablen
  • Timeline stellt alle mit startProfile und stopProfile definierten Bereiche mit einzelner und summierter Ausführungszeit sowie als Wasserfalldiagramm dar
  • Shop zeigt grundlegende Shopinformationen (Edition, Versionen, Themeinformationen)
  • Configuration stellt alle Konfigurationseinstellungen des Shops aus Datenbank und config-Dateien zur Verfügung
  • Smarty listet alle Variablen der Template-Engine, die auf der aktuellen Shopseite zur Verfügung stehen
  • Monolog listet alle an den Monolog Logger übergebenen Lognachrichten
  • Database zeigt alle zur Generierung der aktuellen Seite nötigen Datenbankabfragen

Changelog

Siehe CHANGELOG für weitere Informationen.

Beitragen

Wenn Sie eine Verbesserungsvorschlag haben, legen Sie einen Fork des Repositories an und erstellen Sie einen Pull Request. Alternativ können Sie einfach ein Issue erstellen. Fügen Sie das Projekt zu Ihren Favoriten hinzu. Vielen Dank.

  • Erstellen Sie einen Fork des Projekts
  • Erstellen Sie einen Feature Branch (git checkout -b feature/AmazingFeature)
  • Fügen Sie Ihre Änderungen hinzu (git commit -m 'Add some AmazingFeature')
  • Übertragen Sie den Branch (git push origin feature/AmazingFeature)
  • Öffnen Sie einen Pull Request

Lizenz

(Stand: 30.07.2022)

Vertrieben unter der GPLv3 Lizenz.

Copyright (c) D3 Data Development (Inh. Thomas Dartsch)

Diese Software wird unter der GNU GENERAL PUBLIC LICENSE Version 3 vertrieben.

Die vollständigen Copyright- und Lizenzinformationen entnehmen Sie bitte der LICENSE-Datei, die mit diesem Quellcode verteilt wurde.

weitere Lizenzen und Nutzungsbedingungen

Smarty-Collector

(https://github.com/Junker/php-debugbar-smarty/blob/master/LICENSE - Stand 31.07.2022)

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.