https://github.com/netlogix/netlogix.fusion.xdebug
Neos Fusion Prototype that calls "xdebug_break()"
https://github.com/netlogix/netlogix.fusion.xdebug
Last synced: about 2 months ago
JSON representation
Neos Fusion Prototype that calls "xdebug_break()"
- Host: GitHub
- URL: https://github.com/netlogix/netlogix.fusion.xdebug
- Owner: netlogix
- License: mit
- Created: 2022-03-08T16:50:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-11T13:34:55.000Z (about 3 years ago)
- Last Synced: 2024-11-21T10:49:22.454Z (6 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Netlogix Fusion Xdebug
This package provides a simple Fusion prototype that contains a call to `xdebug_break()`
for easier debugging of fusion prototypes.**A working xdebug setup is assumed!**
## Install package
`composer require netlogix/fusion-xdebug`## Usage
The prototype can be used as `@process`:
```
prototype(Foo) < prototype(Neos.Fusion:Component) {
someprop = 'bar'renderer = afx`
Foo
`
@process.xdebug = Netlogix.Fusion.Xdebug:Break {
someOtherValue = ${request.format}
}
}
```Or directly as a prototype:
```
prototype(Foo) < prototype(Neos.Fusion:Component) {
someprop = 'bar'renderer = Netlogix.Fusion.Xdebug:Break {
someprop = ${props.someprop}
someOtherValue = ${request.format}
}
}
```Or inside of afx:
```
prototype(Foo) < prototype(Neos.Fusion:Component) {
someprop = 'bar'renderer = afx`
`
}
```Prior to the breakpoint, the following variables are declared:
* `$context`: contains the current Fusion context available to the prototype
* `$data`: contains the data passed to the prototype