util.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:G71 作者: nkp216 项目源码 文件源码
def call_pydevd():
    """ trap into the pydevd debugger"""

    import os,sys

    pydevdir= '/home/mah/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_2.0.0.2011040403/pysrc/'

    # the 'emctask' module is present only in the milltask instance, otherwise both the UI and
    # milltask would try to connect to the debug server.

    if os.path.isdir(pydevdir) and  'emctask' in sys.builtin_module_names:
        sys.path.append(pydevdir)
        sys.path.insert(0,pydevdir)
        try:
            import pydevd
            emccanon.MESSAGE("pydevd imported, connecting to Eclipse debug server...")
            pydevd.settrace()
        except:
            emccanon.MESSAGE("no pydevd module found")
            pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号