あなたのスクリプトがどのように見えるかはわかりませんが、次のようなことを試してみてください (単にデバッガーを探しているのでなければ):
file1.py
def function11(arg1, arg2):
try:
# try something with arg1, arg2 <---- throws error
. . .
# return something
except:
return arg1, arg2
def function12(arg3):
# try something else
. . .
return something
file2.py
from file1 import *
def function21():
try:
# the following function should normally throw an error, but you have to be sure
# the result arg1, arg2 from function11 (in file1) still throws
# an error and does not look like the expected result
f = function11(arg1, arg2)
. . .
return something
except: # <---- if function imported from file1.py throws error, you want to print variables instead.
print arg1, arg2