Update Xdebug.py

Updates to support stack depths and different contexts.
Still a mess.