Improved the tiny debugger so that it can inspect outer shared variables.
Removed duplicated codes.