fixed bug when line is vertical, added lots of checks where debugger sho...

...uld break