w010 / w_chromephp Goto Github PK
View Code? Open in Web Editor NEW[TYPO3 EXTENSION] Chrome Logger / Chrome PHP integration
[TYPO3 EXTENSION] Chrome Logger / Chrome PHP integration
This extension includes Chrome Logger (previously known as ChromePhp) script. It also provides short functions to quick use and developer ip control (devIPMask). @See https://craig.is/writing/chrome-logger All copyright to Chrome Logger. This TYPO3 extension only includes it to automatic use in TYPO3 environment. If you have better ideas, how this extension could work, or what to improve, write me: wolo.wolski(at)gmail.com MANUAL: You don't need to include any script in code - just install this extension and Chrome Logger extension for Chrome: https://chrome.google.com/webstore/detail/chrome-logger/noaneddfkdjfnfdakjjmocngnfkfehhd (Chrome Logger has to be enabled in browser using button on toolbar) USAGE: You can use it two ways: ** Original: ChromePhp::info($var); which displays debug always - not filtered by IP (see manual of ChromePhp or search web for details) ** Quick secured: cp($var); which can display only when devIPmask is matched. This can be disabled on install / in extension configuration. Developer ip mask can be set in Install Tool on directly in typo3conf/localconf.php: $TYPO3_CONF_VARS['SYS']['devIPmask'] = '1.2.3.4'; or only notice: cp('something'); or with message type: cp($var, 'info'); Types of debug display are: warn error info you can pass them as third param: cp($var, 'something', 'warn'); ...or use shorts: cpInfo($var, 'something'); cpWarn($var, 'something'); cpError($var, 'something'); You can also use groups: cpGroup('my group'); // type 'group', or: cpGroup('my group', true); // type 'groupCollapsed' // here some cp() calls // and cpGroupEnd(); KNOWN PROBLEMS: - Debugging of objects seems not to work in current version of Chrome Logger ext (4.1.0) - The grouping seems not to work in current version of Chrome Logger ext (4.1.0) - if you use in same time both ways, eg: cp('abc', $var); ChromePhp::log('abc', $var); the second call won't have a backtrace file path. It's because the value of backtrace level is increased in typo extension include file (has to, to show it correctly) and later is stored because ChromePhp is a singleton.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.