Reversible PHP Debugger Released
Friday, 14 October 2016

Dontbug is a new reverse debugger for PHP that lets you record the execution of PHP scripts, in command line mode or in the browser, and replay the same execution back in a PHP IDE debugger.

Dontbug is used with your normal PHP IDE debugger. It lets you record the execution of PHP scripts (in command line mode or in the browser), then replay the same execution back in your PHP IDE debugger.

What's different is that while you're replaying the script, you can debug running the script forward as normal, or switch to reverse. If you choose the reverse option, you can step backwards, or step over or out backwards. You can also run the script backwards, or run to the cursor backwards.

The demo video below shows the utility in action:

 

 

As you'd expect, Dontbug lets you set line breakpoints - including in the past. You can also inspect PHP variables and the call stack.

Dontbug offers full compatibility with existing PHP IDEs including Netbeans, Eclipse PDT and  PhpStorm, and you don't need to modify the IDE or use any special IDE plugins. 

The developer, Sidharth Kshatriya, says that the package has been designed to need minimal learning:

"Apart from getting familiar with debugging in reverse, you continue using the same debugger as before. When dontbug is put into reverse mode, the buttons on your IDE simply acquire opposite meanings. So step over is now step over backwards."

 

The utility can handle recorded PHP script execution completely even if there are network calls, database calls or any non-deterministic input/output in the PHP code. When such calls occur, and the script is replayed, the script will see the same input/output results from the databases, network calls, calls to rand()/time() etc. as were encountered when the recording was made. The data will not be re-read or written during replay.

Dontbug also lets you record multiple web-server requests/responses. This differs from traditional PHP website debugging which works on a per URL basis.

By using dontbug, you can record multiple webserver requests/responses at once, then debug the consolidated execution trace.

bug

More Information

Dontbug on Github

Longer Demo Video

Related Articles

10,000 Bugs Found - A Milestone for Static Analysis

NetBeans 8.2 - With Lots Of Carets  

Developing with PHP and Eclipse (Indigo)

Eclipse Neon Released

PhpStorm 9 Released

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter,subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


52nd Mersenne Prime Found
27/10/2024

It has been nearly six years since the last Mersenne prime was discovered. Now, at last, we have Mersenne prime number 52 and it has 41,024,320 digits!



Wasmer 5 Adds iOS Support
12/11/2024

The Wasmer team has released Wasmer 5.0. The WebAssembly runtime adds experimental support for more back ends including V8, Wasmi and WAMR. It also now has iOS support, and upgraded compilers includin [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Friday, 14 October 2016 )