Tuesday, 31 January 2012

Quick evaluation of complex properties in Xdebug within Vim

For those of us who still use Vim for PHP development, getting Xdebug to work nicely with complex properties is a pain. Most of the time we end up evaluating print_r to get any sort of complex structure or deeply nested value. Not any more! Use this remapping:

nnoremap ,p :python debugger_watch_input("property_get")<cr>A
This is similar to ,e for quick evaluation, but lets you quickly get any given property. Press ,p and type the property you want or, if you prefer, use yank and ^R to copy/paste the property into the debugger window. It works for objects and array subscripts, so you can type complicated things like:

/*}}}1*/ => property_get: $this->someArray['mySubscript']
and get the value of the named property.

Monday, 2 January 2012

Bickerton Hill

IMG_1124

IMG_1100

IMG_1112

IMG_1114

IMG_1129

IMG_1130

IMG_1136

IMG_1143

Sunday, 18 December 2011

Bradfield in the cold

DSCF0651

DSCF0654

DSCF0655

DSCF0656

Monday, 12 December 2011

Christmas Comes To Sheffield

DSCF0510
Dickensian Carollers

DSCF0514
Merry Go Round

DSCF0521
What a jolly horse

DSCF0526
Orchard Square

DSCF0530
This just made me laugh

Tuesday, 6 December 2011

Autumn Colours

DSCF0405 by craigand

The last of the autumn colours are shining brightly in the face of the on-coming winter. There was snow on the ground, but the light made the reds and oranges of autumn glow.
DSCF0361

DSCF0367

DSCF0378

DSCF0381

DSCF0392

DSCF0402

DSCF0411

DSCF0436

DSCF0439

DSCF0443

DSCF0446

DSCF0455

Friday, 2 December 2011

Winter Gardens

Winter Gardens by craigand
Winter Gardens, a photo by craigand on Flickr.

Thursday, 1 December 2011

Crunch crunch crunch

Crunch crunch crunch by craigand
Crunch crunch crunch, a photo by craigand on Flickr.

Autumn is pretty much over, and all that's left is crunchy, leafy detritus.