I've at least got my code running in windbg on Windows, but I'd also like to get a debugging environment set up in OSX. It looks as though gdb is probably my best option but I haven't been able work out how to get it to work with my compiled D programs.