News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Qandidate.com:
Debugging PHP applications with HHVM
October 30, 2013 @ 11:10:23

On the Qandidate.com blog there's a new post showing you an easy way to debug HHVM applications via the built-in debugging tool and it's command line interface. The HHVM is the virtual machine version of the HipHop compiler Facebook created to speed up PHP execution.

In the previous parts of this series we got you started with HHVM and showed how we could get the symfony standard edition running on HHVM. This time we will dive deeper into HHVM by using it to debug our application. For most people the easiest way of debugging a PHP application is to place var_dump() and die() statements all over the code. Another option is installing xdebug, which has gotten a lot easier nowadays due to IDE integrations.

To illustrate, they create a super simple PHP script and show how to start up the HHVM in debug mode. They introduce you to the commands you'll need to step through the script execution and locate the breakpoints where errors are happening. You can do things like print out the current values of variables, set conditional breakpoints and get a stack trace for the execution so far.

0 comments voice your opinion now!
debug hhvm hiphop virtualmachine tutorial introduction

Link: http://labs.qandidate.com/blog/2013/10/29/debugging-php-applications-with-hhvm/

blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: Installing Gearman for PHP and Ubuntu

PHPToys.com: Creating a file based AD rotator script

Aleksey Martynov's Blog: Getting started with lexa-tools: Blog in 15 Minutes

PHPMaster.com: REST - Can You do More than Spell It? Part 1

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API


Community Events





Don't see your event here?
Let us know!


release introduction framework deployment library tips podcast opinion package list bugfix community laravel voicesoftheelephpant interview api language series install symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework