debugger-agent: properly assign env to a dbg ctx