EMBED YOUR TERMINAL RECORDINGS ONLINE

PHP Xdebug in console

DATE: 2012-02-27
AUTHOR: Coder of Salvation
AUTHOR WWW: http://leon.vankammen.eu
RELATED ARTICLE: http://leon.vankammen.eu/xdebug-console

Related recordings:

SUTRAPHP-INTRODUCTION

tags: sutraphp sutra php console cli eventbased
GENERATING PHP & SQL (MAPPING) CODE

tags: sutra generate sql generate database php cms mysql
HOW TO WRITE A MODULE IN SUTRA

tags: sutra sutraphp module php howto write a mo
HOW TO USE SUTRA EVENTS

tags: sutra events php eventhandling eventbased php
CONDITIONAL CRON USING DATE %A

tags: cron shellscript conditional bash schedule
CUT TEXT FROM CONSOLE OUTPUT

tags: cut manipulate text bash shellscript
FORMATTING OUTPUT WITH COLUMN

tags: formatting output shellscript column cut
OUTPUT INTO SHELLSCRIPT VARIABLE

tags: bash output shellscript redirect into variable
POOR MAN'S TEXT PATCHER

tags: m4 bash shellscript bourne patch diff replace
MASHING UP CODE

tags: bash php python perl ruby erlang c c shellscript

Bookmark and Share
EMBED THIS RECORDING:
<div><script id="playterm-MjAxMi0wMi94ZGVidWd0dHlyZWMtMTMzMDMzNzk4NHw4MHgyNA==" type="text/javascript" src="http://playterm.org/js/?hash=MjAxMi0wMi94ZGVidWd0dHlyZWMtMTMzMDMzNzk4NHw4MHgyNA==" class="size:80x24"></script></div>
I recorded this `PHP Xdebug in console` shellsession because I wanted to promote my shellscript
utility. PHP's debugging module 'XDebug' has wonderfull console-features..but not many people know
this. 

commands:

$xdebug --manual

that will contain more examples

Coder of Salvation said

btw. the sourcecode (GIST) has been updated in the meanwhile..so the actual version can differ a
bit..but only in a good way. Latest improvements:
- php arguments no supported
- more readible output
- more easy to use

Coder of Salvation said

ps. See the related article for the latest source of the shellscript [=

Theo said

So... How do I install xdebug for the terminal? I cannot find any information on how to install it
to work on the console!

Coder of Salvation said

oh, I discovered the articlelink is outdated, here is the updated link:
http://leon.vankammen.eu/tech/xdebug-bashscript-to-profile-and-debug-php.html
The usage is simple:
- download bashscript
- set executable permissions (chmod 755 xdebug)
then run something like:
php trace yourfile.php
of
php profile yourfile.php

 

Name   
Email (never shown)  
Comment