Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simpler way to add the XDEBUG_SESSION_START cookie/variable? [closed]

Tags:

php

vim

xdebug

I use vim with debugger and xdebug to walk trough PHP applications.

In firefox (or any other browser), I then need to open up the page, call a URL with XDEBUG_SESSION_START=1 appended to it, in order to tell the xdebug PHP-plugin to start the debug-server.

This works fine, but can it be made simpler?

Is there some plugin for firefox that allows me add this session automatically? Some xdebug setting that allows me to circumvent this alltogether? Or some vim-addon, script or trick that allows me to call firefox with that parameter added automatically?

like image 694
berkes Avatar asked Dec 29 '11 09:12

berkes


People also ask

How do I get rid of Xdebug 3?

Update: For Xdebug 3+: As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug. mode to off , or by setting the environment variable XDEBUG_MODE=off . It is very easy to disable Xdebug just for composer, by aliasing composer . You can add the alias to your $HOME/.


1 Answers

Take a look to the firefox extensions page.

Some time ago I used vimxdebug. It did the job fine, but it's no supported in firefox 8.0. There's also other extension, easy Xdebug, but I didn't try it.

like image 160
el.atomo Avatar answered Sep 28 '22 17:09

el.atomo