Add debug attribute to session.
If set to True, add some useful variable to shell namespace