Actually, no that still doesn't work. The Z module is a dbg module. Every function no matter where it is in any module will still have some dbg code in it. So you would still have the loop of dbg calling the new module and the new module calling dbg.