in reply to Debugger problem

Try reducing the problem to a minimal set of code that still exhibits the issue.

You've got WAY too much in there. Cut out everything that isn't required to demonstrate the problem.

For example, you said it seems to be related to loading a module. Try deleting everything except the "use module" and a print "Hello World". If that doesn't have a problem, then try adding functions back one at a time until the problem happens again.

A best guess, followed by binary search is a very good method to find the problem fast.