News Feed
Sections




News Archive
feed this:

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

Allan MacGregor:
Working with Psysh
April 14, 2014 @ 09:24:34

Allan MacGregor introduces you to Psych in his latest post today. Psysh is a runtime developer console, interactive debugger and REPL for PHP.

Psysh is actually more than a simple REPL it's also an interactive debugger; which means you can say goodbye to the endless barrage of var_dump() and die() statements. But do we really need another REPL for PHP, well honestly we could probably get by with the solutions currently available however Psysh has an extremely interesting Ace under the sleeve, it can also function as a realtime debugger.

He includes a few terminalcasts showing some of the commands Psysh offers from the expected output of variable value out to a handy link to the PHP documentation. An example of the useful object output is also included, enabling the showing of methods and properties.

0 comments voice your opinion now!
psysh repl debugger console documentation debugger

Link: http://coderoncode.com/2014/04/03/working-with-psysh.html

Ruslan Yakushev's Blog:
How to enable Xdebug in WebMatrix
February 22, 2011 @ 13:09:23

Ruslan Yakushev has posted some quick instructions on how to get Xdebug, the popular PHP debugger, enabled in the recently released WebMatrix tool from Microsoft.

When WebMatrix is used to build or modify a PHP-based web application the debugging tasks can be greatly simplified if Xdebug extension is used. This post explains how to install and use Xdebug extension with WebMatrix.

It's a simple six-step process (complete with screenshots) that shows you how to enable it in your php.ini, test that it's working with a simple buggy script and configure both the location to the correct DLL file and an output directory to create cachegrind files.

0 comments voice your opinion now!
xdebug webmatrix microsoft windows debugger cachegrind


Bence Eros' Blog:
Creating an interactive debugger for PHP
January 26, 2011 @ 08:53:48

Bence Eros has submitted a new post from his blog that looks at the method he came up with to create an interactive debugger for PHP. It's just a prototype/proof of concept that lets you execute PHP code in the browser (using eval - a little scary, I'll admit).

Last night I created a prototype for an interactive debugger for PHP without the need of any IDE-plugin. In this post I'm going to show what I found. Unfortunately you will need some time to put the environment together, but I think it's worth doing it. My target was to create a way how you can view and modify your variables manually at runtime, only by inserting one line code.

He does mention that, because of the settings he uses, the debugger can only be loaded from a different domain than the application which can be restricted a bit simpler (i.e. its own https or .htauth). His setup uses an Apache2 web server and a few PHP/HTML scripts to get the job done. In the end you'll have something similar to this for you to run your code in.

3 comments voice your opinion now!
interactive debugger webbased tutorial apache2


Community News:
DBG Debugger Helper for Google Chrome Released
December 27, 2010 @ 13:56:34

Jeremy Cook sent in a new tip about a new debugging extension for Google Chrome that hooks into the DBG debugger to help you test your PHP applications - a DBG Debugger Helper (currently in version 0.0.0.1).

For those using the DBG debugger for PHP development, this minimal extension provides a convenient way to initiate debugging and profiling sessions. The most likely users will be anyone using Nusphere's PhpED. This commercial PHP IDE includes a robust, up-to-date, and full-featured DBG debugger. [...] Installation, configuration, and use is quick and simple. While you can configure the clienthost, port, and session ID entries of the Options dialog, this is not required.

The extension makes it as simple as one click to start and stop the debugging process that will watch round trip requests and catch errors to allow DBG to provide things like backtraces, work through the script step by step.

0 comments voice your opinion now!
google chrome helper dbg debugger helper


HowToForge.com:
Installing PHP5 Debugger On OpenSUSE 11.3
October 19, 2010 @ 12:49:19

On HowToForge.com there's a tutorial on installing a PHP Debugger (xdebug) on an OpenSUSE linux install including PHP5 and Apache.

This tutorial shows how to install php5 debugger (xdebug) on OpenSUSE 11.3.

The steps of the process are super simple because of the "zypper" package manager:

  • Install the PHP5, Apache2 and PHP for Apache module
  • Download the latest Xdebug version and unpack it
  • Build Xdebug
  • phpize it to build the shared object
  • Update your php.ini file to add it in
0 comments voice your opinion now!
xdebug install tutorial debugger zypper opensuse


Developer.com:
PHP Development Tools Improve in Eclipse Helios Update
June 29, 2010 @ 09:26:20

On Developer.com today there's a new article talking about some of the PHP-related improvements in the latest version of the PHP Development Tools (PDT) extension for Eclipse including template assistance and improved debugging.

Among the 39 projects included in Eclipse Helios is the PDT (PHP Developer Tools) 2.2 release. The PHP Eclipse project was first announced back in 2005, with version 1.0 coming in 2007. With the PDT 2.2 release, the project has continued to evolve with new features as the project's popularity has grown.

New features include a template content assist feature that will help make it easier for developers to get an application up and running quickly and better debugging support via a new inspection tool to help evaluate PHP expressions. The post also includes some quotes from Andi Gutmans of Zend on the progress PDT has made and some thoughts on one of its competitors, Netbeans.

0 comments voice your opinion now!
pdt development tools eclipse ide release template debugger


Dennis Docter's Site:
Zend Debugger Toolbar Extension for Chrome
January 19, 2010 @ 14:37:14

Dennis sent in a submission about a toolbar he's created to work with the Zend Debugger (in an extension) for the Chrome Browser:

Since i have not yet seen an official extension for chrome (or i have not looked hard enough), i created one so i don't have to switch back to Firefox all the time, while I wait for the official extension. It only has the basic functionality (debug, debug next, profile and some configuration options) and it probably has some bugs and quirks, but it functions fine for me.

You can download this toolbar from here and if you have issues installing it, you might check out this post on the Zend Forums.

0 comments voice your opinion now!
zend debugger extension toolbar chrome


DevShed:
Using the Xdebug Extension's xdebug_call_function() Function
February 09, 2009 @ 12:56:18

This new tutorial from DevShed takes a look at the XDebug debugging tool for PHP and how the xdebug_call_function method allows for even more flexibility in your testing experience.

The Xdebug extension comes equipped with many other functions, however, that allow you to debug PHP applications more deeply. Therefore, in this second article of the series, I'll be discussing how to use another useful function included with the extension, called "xdebug_call_function()," which as its name suggests, can be utilized for keeping track of the functions called by a PHP script.

They start with a look back at two of the other xdebug functions - xdebug_call_file and xdebug_call_line - before showing how to use this new function (xdebug_call_function) to get the function that called your custom handler.

0 comments voice your opinion now!
xdebug call function file line debugger extension


DevShed:
The XDebug Extension
February 02, 2009 @ 12:03:26

This new article from DevShed takes a look at one of the more useful PHP tools out there for finding problems and holes in your scripts - the XDebug extension.

If you program at all, you understand the necessity of debugging. Fortunately, depending on the language in which you program, you can find an assortment of tools to help you with this task. One very good debugging tool for PHP is the XDebug extension. This seven-part series will reveal its capabilities and help you add it to your programmer's toolbox.

This first part of the series looks (briefly) at getting it installed and creating some test code to show included files and grab the line number where the error occurred.

0 comments voice your opinion now!
xdebug extension debugger script tutorial series


Ian Selby's Blog:
Aptana PHP 1.0 Released - Free PHP IDE
December 15, 2008 @ 11:14:18

Ian Selby has posted a look at the newly released PHP support by the Aptana software:

Aptana (yes, this is a shameless plug) released version 1.0 of its PHP support yesterday, and it is something that you should definitely check out. Prior to working at Aptana, I was an avid user of Zend Studio, and Coda, simply because those were the best PHP IDEs as far as I was concerned. Over the past few months, however, we've been hard at work on the PHP support for Aptana Studio, and I can say with much confidence that it is in every way as good as every other PHP IDE out there, and better than some in other respects.

He talks about new features like content assist (adding userland code to the automatic completion), completion of functions with parameters already filled in and a PHP preview server and debugger built right in. You can get more information on the Aptana website.

0 comments voice your opinion now!
free ide aptana support release content assist parameter preview debugger



Community Events





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


threedevsandamaybe introduction release deployment bugfix tips language code voicesoftheelephpant api laravel framework zendserver interview list podcast series community symfony conference

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