Hello. I am new to python so if someone can help me, i would really appreciate that. How do you guys debug the python scripts inside metin2? Are you writing in the chat? Is there a better way? How do i debug the exceptions? Thank you very much
import sys, os
f = open('pythonDump.txt','w')
modules_key = sys.modules.keys()
modules_dic = sys.modules
built_in = sys.builtin_module_names
for mod in modules_key:
if mod not in built_in:
print >>f,'\n-----MODULE------'
print >>f,str(mod)
print >>f,'-----------------\n'
funcs = dir(modules_dic.get(mod))
for func in funcs:
print >>f,str(func)
f.close()