Xdebug bookmarklet

Nothing really new since there is already a firefox extension which does just the same, but I also wanted to support other browsers.

So this bookmarklet toggles the cookie Xdebug uses to check if it should debug the running script or not!.

Toggle Xdebug

Drag it to your bookmarks (or favorites or whatever your browser calls it) toolbar so it’s easy to access. Assign it a keyboard shortcut, if your browser has that function, and you’re done.

By default it’ll prompt for the idekey to be used by Xdebug, it’s a good idea to modify the idekey variable at the start of the bookmarklet’s source with your idekey or with default if you’re not using a DBGp proxy.