Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!
Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!
Обычно разработчики используют для отладки стандартные функции print_r() и var_dump(). Да, они показывают все содержимое переменной, но вывод приходится обрамлять тегами <pre></pre> и в итоге мы получаем искаженный внешний вид сайта, свалку свойств, "километровую" прокрутку и.т.д. В итоге - убийство времени и сил на "черную работу".
Утилита J!Dump делает жизнь простого программиста проще. Фактически плагин добавляет новый функционал к ядру Joomla. Вся интересующая нас информация теперь будет выводиться в аккуратно оформленном всплывающем окне.
Установка J!Dump
Подходит для Joomla 1.5.x - 1.6.x версий.
Компонент и необходимый к нему плагин можно загрузить по ссылкам в конце страницы. И компонент и плагин должны быть установлены вместе.
Обязательно опубликуйте системный плагин. По умолчанию он называется "J!Dump", находится в группе "system". В противном случае функции отладки будут не доступны и могут вызывать крах всего сайта.
После установки, у вас появится новый компонент. Перейдя в него, вам откроется краткая справка. На панели инструментов нажмите на параметры. Здесь можно установить:
Использовать отладку можно практически везде в коде, где определена функция dump().
Функция dump()
Просто да? Второй параметр - это опциональная возможность функции, название перменной. Это особенно удобно при использовании нескольких дампов, чтобы легко отличать их друг от друга.
![]() |
![]() ![]() ![]() |
![]() |
Функция dumpSysinfo()
Выводит основную информацию о системе, Joomla, константах, окружении
Функция dumpTemplate()
Используется внутри index.php, для отображения параметров шаблона.
Функция dumpMessage()
Отображает какое-нибудь системное сообщение, очень удобно для того чтобы узнать была ли вызвана функция, подключен ли файл, выполнен ли цикл и прочее...
Функция dumpTrace()
Отображает BackTrace - порядок вызова файлов, функций, аргументы
Плюсы
Минусы
Замечания
В целом расширение очень понравилось, хотя есть некоторые недочеты (а кого их нету?). На деле оказыватся очень удобным, но немного не привычным. Самое большое неудобство на мой взгляд - это медлительность работы JS, но за хорошим железом и быстрым браузером (например, Google Chrome) это не проблема. Рекомендуем!
При работе j!dump в joomla 2.5 при вызове соответствующего пункта меню почему-то дает ошибку 500. Плагин активирован. В чем может быть причина?
А какой текст ошибки?
Вот: localhost/project/ru/jdump.html
Ошибка: 500
Вы не можете посетить текущую страницу по причине:
просроченная закладка/избранное
поисковый механизм, у которого просрочен список для этого сайта
пропущен адрес
у вас нет права доступа на эту страницу
Запрашиваемый ресурс не найден.
В процессе обработки вашего запроса произошла ошибка.
Пожалуйста, перейдите на одну из следующих страниц:
Домашняя страница
Поиск по сайту
Если проблемы продолжатся, пожалуйста, обратитесь к системному администратору сайта и сообщите об ошибке, описание которой приведено ниже..
Представление не найдено [name, type, prefix]: tree, html, dumpView
Hi there, just wanted to tell you, I liked this blog post.
It was inspiring. Keep on posting!
What's up Dear, are you in fact visiting this web page daily, if so after that you will without
doubt get pleasant experience.
I am genuinely grateful to the owner of this website who has shared this fantastic piece
of writing at at this time.
Thanks for the auspicious writeup. It if
truth be told was a leisure account it. Look advanced to more delivered agreeable from you!
However, how can we be in contact?
Hello there, just became alert to your blog through
Google, and found that it is truly informative.
I am going to watch out for brussels. I will be
grateful if you continue this in future. Lots of people will be benefited from your writing.
Cheers!
Hi there, i read your blog occasionally and i own a similar one and
i was just curious if you get a lot of spam remarks?
If so how do you reduce it, any plugin or anything you can recommend?
I get so much lately it's driving me mad so any assistance is very much appreciated.
I know this web site presents quality based posts and other stuff, is there any other website which gives these kinds of things in quality?
I have read a few good stuff here. Definitely price bookmarking for revisiting.
I wonder how a lot attempt you put to make the sort of excellent informative website.
I love it when folks get together and share opinions.
Great website, stick with it!
I really like reading a post that will make men and women think.
Also, thanks for allowing me to comment!
Good blog post. I definitely love this website. Keep it up!
It's remarkable for me to have a web page, which is good in favor of my knowledge.
thanks admin
Hi, i read your blog from time to time and i own a similar one and i was just wondering if you
get a lot of spam feedback? If so how do you prevent it, any plugin or anything you can suggest?
I get so much lately it's driving me crazy so any help is very much appreciated.
I do not even know how I ended up here, but I thought this post was great.
I don't know who you are but definitely you're going
to a famous blogger if you aren't already ;) Cheers!
My spouse and I absolutely love your blog and find the majority of your post's to be exactly I'm
looking for. Do you offer guest writers to write content
to suit your needs? I wouldn't mind publishing a post or elaborating on most of the subjects you write with regards to here.
Again, awesome site!
Normally I do not read post on blogs, but I wish to say that this write-up very pressured me
to take a look at and do it! Your writing taste has
been surprised me. Thank you, very great article.
Hello There. I found your blog using msn. This is an extremely well written article.
I'll make sure to bookmark it and return to read more of
your useful info. Thanks for the post. I'll definitely return.
This piece of writing gives clear idea designed for the new visitors of blogging, that actually how to do blogging
and site-building.
Hi there! This is kind of off topic but I need some
help from an established blog. Is it very difficult to set up
your own blog? I'm not very techincal but I can figure things out pretty quick.
I'm thinking about setting up my own but I'm not sure
where to begin. Do you have any points or suggestions? Appreciate it
Hmm is anyone else experiencing problems with the images on this
blog loading? I'm trying to determine if its a problem on my end or if it's
the blog. Any feedback would be greatly appreciated.