File: my_code.py

package info (click to toggle)
pydevd 3.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,892 kB
  • sloc: python: 77,580; cpp: 1,873; sh: 374; makefile: 50; ansic: 4
file content (20 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# import pydevd
# py_db = pydevd.get_global_debugger()
# py_db.set_project_roots(r'X:\liclipsews\liclipsews\Pydev\plugins\org.python.pydev.core\pysrc\tests_python\resources\my_code')
# py_db.set_use_libraries_filter(False)

if __name__ == '__main__':
    import sys
    import os
    sys.path.append(os.path.dirname(os.path.dirname(__file__)))

    from not_my_code import other

    def callback2():
        return 'my code2'

    def callback1():
        other.call_me_back2(callback2)  # first step into my code

    other.call_me_back1(callback1)  # break here
    print('TEST SUCEEDED!')