Posts by Renato Cassino • 161 points
5 posts
- 
		3 votes9 answers30430 viewsA: How to debug code in PHP?You can use a lib called dephpugger. It’s like ipdb for python or byebug for ruby. You type xdebug_break() in your code and it stops at the terminal. https://github.com/tacnoman/dephpugger… 
- 
		0 votes1 answer28 viewsA: How to pass a parameter in a GET verb when using Xdebug - NetbeansYou could put in a piece of code for us to evaluate. But basically it would be something like: <?php if(isset($_GET['type']) && 'arr' === $_GET['type']) { return $jsonInArrayFormat; //… 
- 
		0 votes1 answer452 viewsA: XDEBUG configuration in PHP.ini ( Cakephp, Appserv - Apache2.4, Netbeans)For windows it’s really complex. If you use Vagrant or Docker (or Linux itself) you can use Dephpugger. Dephpugger is a php lib to run direct Debugger on the terminal (like Python ipdb or Ruby… 
- 
		1 votes1 answer40 viewsA: Page cache is not expiringI figured out what the problem is. expires_in only works if you are using Memcached or something similar (like Redis, for example). It still only works in caches_action. The caches_page is made for… 
- 
		2 votes1 answer40 viewsQ: Page cache is not expiringI am using the caches_page in a controller in my application in Rails 4. caches_page :index, expires_in: 10.minutes I need to have this controller run again after 10 minutes and generate a new page.…