debugger: assign Environment to DebugContext too

fix #7517
Merge pull request #1 from indutny/fix/gh-7517

debugger: assign Environment to DebugContext too