joonty/vdebug — pull request #4 by beatle (2012-08-22 22:43:07+00:00)
Title: Fixes for windows filepath and setting breakpoint issues

Hi, Jonathan. First of all I want to thank you for vdebug plugin. It looks very nice!

Today I've decided to test it under my windows environment. I was surprised getting exceptions just on attempt to run debug session.
The reason of bug is invalid filename processing in Filepath utility:
```python
if filename.startswith('file://'):
filename = filename[7:]
```
in case of Windows filename "file:///D:\path\to\file" transforms to /D:\path\to\file and it's the reason of thrown exception.

The second bug i've found is innability to set breakpoint if debug session wasn't started yet. It happens beacause breakpoints creation depends on local and remote paths which are initialized only durring runnig session. So i've just added initiaialization of vdebug_options into set_breakpoint method.
I think it's not the best solution but it works.
Maybe it would be better to incapsulate vdebug_options handling in vdebug.opts.Options class?

ps. It's my first python experience so please don't revile me :)