Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal garbage: debugger does not even work on the simplest possible example #759

Open
xuancong84 opened this issue Feb 15, 2019 · 0 comments

Comments

@xuancong84
Copy link

In line-by-line debugging mode, the standard output is gone. Thus, the debugger does not even work on the following simplest possible code:

%%pixie_debugger
import os, sys
import torch

print("Hello world", flush=True)

for i in range(10):
    j=i**2
    print("This is %d : %d"%(i,j))

Expected output:

Hello world

This is 0 : 0
This is 1 : 1
This is 2 : 4
This is 3 : 9
This is 4 : 16
This is 5 : 25
This is 6 : 36
This is 7 : 49
This is 8 : 64
This is 9 : 81

Actual output (line-by-line debugging for i=0,1,2,3):

> (4)pixie_run()
-> import os, sys


> (7)pixie_run()
-> print("Hello world", flush=True)

> (9)pixie_run()
-> for i in range(10):

This is 4 : 16
This is 5 : 25
This is 6 : 36
This is 7 : 49
This is 8 : 64
This is 9 : 81

As you can see, the output for printing "Hello world" and for i=0,1,2,3 in the for-loop is gone if I use line-by-line debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant