All Projects → t3n → neos-debug

t3n / neos-debug

Licence: MIT license
Adds a debug panel to your Neos CMS website

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
typescript
32286 projects

Projects that are alternatives of or similar to neos-debug

KaufmannDigital.GDPR.CookieConsent
A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.
Stars: ✭ 21 (-32.26%)
Mutual labels:  neoscms, neos-plugin
Sitegeist.Kaleidoscope
Responsive Images for Neos CMS
Stars: ✭ 27 (-12.9%)
Mutual labels:  neoscms, neos-fusion
graphql
Flow Package to add graphql APIs to Neos and Flow that also supports some advanced features
Stars: ✭ 14 (-54.84%)
Mutual labels:  neoscms, flowframework
neos-blog
A simple blog plugin for Neos CMS
Stars: ✭ 17 (-45.16%)
Mutual labels:  neoscms, neos-plugin
EelShell
A shell for EEL expressions
Stars: ✭ 17 (-45.16%)
Mutual labels:  neoscms, flowframework
Wysiwyg.ABTesting
A/B Testing Package for Neos
Stars: ✭ 16 (-48.39%)
Mutual labels:  neoscms, neos-plugin
Yeebase.Fusion.ContentCacheDebug
Helper package to debug fusions content cache
Stars: ✭ 13 (-58.06%)
Mutual labels:  neoscms, flowframework
flow-debugproxy
A Flow Framework Debug proxy for xDebug, written in Go
Stars: ✭ 24 (-22.58%)
Mutual labels:  neoscms, flowframework
Newsletter
Neos Newsletter Sending Package
Stars: ✭ 19 (-38.71%)
Mutual labels:  neoscms
form-builder
Flow Form Framework integration into Neos CMS
Stars: ✭ 17 (-45.16%)
Mutual labels:  neoscms
varnish
Varnish integration for Neos CMS
Stars: ✭ 19 (-38.71%)
Mutual labels:  neoscms
Networkteam.Neos.MailObfuscator
Email address obfuscation for Neos CMS
Stars: ✭ 13 (-58.06%)
Mutual labels:  neoscms
Sitegeist.Taxonomy
Manage vocabularies and taxonomies as separate node-hierarchy.
Stars: ✭ 14 (-54.84%)
Mutual labels:  neoscms
Psmb.Newsletter
Render email newsletters with Fusion in Neos CMS
Stars: ✭ 12 (-61.29%)
Mutual labels:  neoscms
fusion-form
No description or website provided.
Stars: ✭ 16 (-48.39%)
Mutual labels:  neoscms
intellij-neos
Support for the Neos CMS in Intellij IDEA / PhpStorm
Stars: ✭ 37 (+19.35%)
Mutual labels:  neoscms
NeosAcl
No description or website provided.
Stars: ✭ 13 (-58.06%)
Mutual labels:  neoscms
Sitegeist.MagicWand
Tools that make the Flow/Neos development easier
Stars: ✭ 47 (+51.61%)
Mutual labels:  neoscms
Flowpack.SimpleSearch.ContentRepositoryAdaptor
Adaptor for the Neos CR, based on the SimpleSearch package
Stars: ✭ 23 (-25.81%)
Mutual labels:  neoscms
Flowpack.SearchPlugin
A simple search plugin for Neos
Stars: ✭ 23 (-25.81%)
Mutual labels:  neoscms

CircleCI Latest Stable Version License

t3n.Neos.Debug

The t3n.Neos.Debug package is a small helper package to add a debug panel to your Neos CMS website. At this point in time you're able to debug your content cache configuration as well as sql queries. Additionally, the Server-Timing http header can be enabled that will add request timings to responses. Those then can be viewed in the browser network tab.

Note: This is still a very early rough version. Contributions are welcome in any Error. Nevertheless, it's already adding value to your debug experience

Neos CMS Demo Site with enabled debug console Server-Timing header in the browser network tab

Installation & configuration

Install the package via composer

composer require t3n/neos-debug --dev

The debug mode is disabled by default. To enable it add this to your Settings.yaml

t3n:
  Neos:
    Debug:
      enabled: true

To bring up the debug panel run this command in your js console:

__enable_neos_debug__()

Disclaimer: Once the debug mode is enabled you might expose sensitive data. Make sure to not use this in production. At least be warned

In a previous version of this package your current user needed a specific role as well. We dropped this requirement for now as you could not use this package if you don't have a frontend login on your site. Once the package is active it will render some metadata in your html output.

To get the debugger running you now need to include some javascript and css to acutally render the debug console. This package ships two fusion prototypes to include all resources. If your Document extends Neos.Neos:Page you don't need to include anything. We already added the resources to Neos.Neos:Page prototype.

HTTP Server-Timing header

The header is disabled by default. To enable it add this to your Settings.yaml

t3n:
  Neos:
    Debug:
      serverTimingHeader:
        enabled: true

If you only want the header with all timings but not the debug mode, do this:

t3n:
  Neos:
    Debug:                                                  
      enabled: true
      htmlOutput:
        enabled: false
      serverTimingHeader:
        enabled: true

Usage

To enable the cache visualization open your browsers developer console and execute __enable_neos_debug__(). This will bring up the debug console at the bottom of your screen.

🔦 Inspect

Once you enable the inspect mode a visualization will pop up and add overlays on your cached parts. Cached parts are marked green, uncached red and dynamic caches are marked yellow. If you hover the loupe you will also see some meta data regarding the cache.

⚡️ Cache

This module will add a new modal including some statistics regarding cache hits and misses as well as a table of all rendered cache entries.

🗄 SQL

In addition to the content cache we're also exposing some debug SQL informations and statistics. It will also detect slow queries. You can configure from when a query should be marked as slow:

t3n:
  Neos:
    Debug:
      sql:
        # Set when a query should be considered as slow query. In ms
        slowQueryAfter: 10

🚫 Close

To shutdown the debug console simply close it. If you'd like to persist the active debug state you can add a true to the method

__enable_neos_debug__(true)

This will set a cookie and the debug mode will still be active after a page refresh.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].