- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 01.07.08
- Posts:
- 137
How do I efficiently debug modules during development?
I have xampp (Win) installed for testing and am programming with gvim (and sometimes PHPEdit).
Sadly I don't know where I can directly view the results of the mysql-requests and the the status of the PHP variables.
--
greetings,
O. Encke
ASUS Notebook Forum -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- online
- Posts:
- 13415
You can add to pnRender templates too see what variables are available to the template containing the pndebug call. Otherwise, you could simply echo the $SQL statement and paste it into phpMyAdmin, print_r the connection object... etc etc.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Professional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 23.11.08
- Posts:
- 1676
These are my 2 debug friends... they crawl all files with me.
For strings:Code
The break is for when it's used in foreach's and while's, although you have to move the die to the end of the cycle.
For arrays:Code
The begining and end again are to help distinquish multiple instances.
--
Under Construction!
