[TYPO3-core] RFC #14618: Bug: Add debug feature to Ext Direct
Fabien Udriot
fudriot at omic.ch
Fri Jun 4 12:39:42 CEST 2010
This is an SVN patch request.
Type: Bugfix
=====
Bugtracker references: http://bugs.typo3.org/view.php?id=14618]
======================
Branches: trunk
=========
Problem:
========
I have messed around with Ext Direct and have experimented a lack of debug output when things go wrong.
Consider the URL bellow which is the API Generator and is called for configuring Ext Direct on the
client side. When Ext Direct is missconfigured somewhere, the URL bellow returns nothing. This is
not optimal as it is quite tough to spot the flaw in this condition.
http://domain.tld/typo3/ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.MyExtension
More info: http://wiki.typo3.org/index.php/ExtDirect#The_API_Generator
Solution:
=========
I suggest to add:
- some debug output to give the developer clues about what can be wrong. Message is displayed on the
javascript console or in prompt message when console is disabled
- add a "clear_cache" parameter for development context. The result of typo3/ajax.php is put into
cache_hash for performance. But while coding, it is a bit annoying to clear the cache manually each
time something change in your router server side.
Steps to reproduce:
===================
- Install extension "extdirecttest" http://bugs.typo3.org/file_download.php?file_id=10024&type=bug
- Make sure the extension is working properly.
- In ext_localconf.php search and replace *every* occurrence "TYPO3.Demo" by "TYPO3.WRONG"
- Clear the cache
- Reload the FE.
You should see an error message displayed on the javascript console or as prompt message if console
is disabled.
Regards,
Fabien
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_14618.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100604/59559717/attachment.txt>
More information about the TYPO3-team-core
mailing list