debugger: modules handling.
Fixes #4.