File: test.py

package info (click to toggle)
boa-constructor 0.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,188 kB
  • ctags: 8,857
  • sloc: python: 54,163; sh: 66; makefile: 36
file content (44 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import sys, os
print os.getcwd()
print sys.path

for n in range(2):
    print 'hi!'
sys.stdout.flush()


def test1():
    q = 1
    print 'I'
    print 'am'
    print 'here.'

def test():
    print 'Hello'
    print 'World!'
    for n in range(1000):
        pass
    print 'Message:'
    test1()
    print 'Bye.'
    raise 'I refuse to finish!'
    print 'yeah.'

if __name__ == '__main__':
    if 1:
        test()
    else:
        import IsolatedDebugger
        dc = IsolatedDebugger.DebuggerController()
        id = dc.createServer()
        conn = IsolatedDebugger.DebuggerConnection(dc, id)
        conn.run('test()', globals(), locals())
        for n in range(3):
            print conn.getInteractionUpdate()
            conn.set_step_over()
        for n in range(6):
            print conn.getInteractionUpdate()
            conn.set_step()
        print conn.getInteractionUpdate()
        conn.set_continue()
        print conn.getInteractionUpdate()