Developers Friend

Extension Key: abz_developer

Copyright 2006-2007, Franz Ripfel, <fr@abezet.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

Override Labels	1

Introduction	1

What does it do?	1

Users manual	1

Introduction

What does it do?

This extension aims to make your developing tasks easier by providing same useful functionality. It includes:

Automatic deletion of frontend cache

Activation of SQL debug and devlog. (Could be configured within Install Tool also)

Specialized debug for team developing

Beware:
This extension should only be used in development environments. Deinstall when going live!

Users manual

.

Upon Installation you have the following options.

keep cache empty
A hook ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preBeUser']) is activated to empty the caching tables before rendering the page. Therefore you do not have to care for you cache settings, you will always get a freshly rendered page. Our suggestion: Configure everything like you would do for live environment, so you won´t have to change it later. If you want to test for live conditions, just deinstall the extension.

activate sql debug and devlog
This just activates two options you could also set with the Install Tool. Consider using the devlog feature with the extensions cc_devlog or rlmp_filedevlog, it real fun!

list of initials for debug messages
If you develop in a team using versioning systems like subversion, others in the team might submit (for whatever reasons) some debug statements, which are truly annoying for you, because you do not need them. Here comes the trick in. Use debug statements like

tx_abzdeveloper::debug('fr',$var, 'array', __LINE__, __FILE__);
tx_abzdeveloper::debug('fr',$var, 'string', __LINE__, __FILE__);
tx_abzdeveloper::debug('fr',$var, 'string', __LINE__);
tx_abzdeveloper::debug('fr',$var, 'string');
tx_abzdeveloper::debug('fr',$var);
All team members – especially the ones likely to submit debug statements! - use this debug command entering the matching initials as first parameter and everyone is just seeing the wanted debugging messages. Which ones you want to see is configurable upon installation of the extension.

Example: Your name is Frodo Rich, your initals therefore fr. Place this initials as first parameter in your debug statements and in the field list of initials for debug messages. The others to the same with their (unique) initials. Now everybody will just see his/her debug statements.

The debug class is based on the great cc_debug from René Fritz. Thanks!

EXT: My Extension - 2

EXT: My Extension

Kasper Skårhøj

2002-11-01T00:32:00

Franz Ripfel

Kasper Skårhøj