Hello,
I'm using Spyder 2.3.6 with Python 3.4.3 on Linux Mint 64bit
When using a simple test script (see below) and running it normally (F5 /
"green arrow") I get the expected output on the console.
When running the same code with the builtin debugger (CTRL F5 / "blue
arrow"), nothing unexpected happens either.
However, when I set a breakpoint, for example in the line "b = 5" and run
the debugger, everything is fine until i reach the breakpoint, if I
continue debugging from that point (OR just step line by line through my
whole short script) I get an error message (see below)
a = 4
b = 5
c = a + b
print(a, b, c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python3.4/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py"
, line 705, in debugfile
debugger.run("runfile(%r, args=%r, wdir=%r)" % (filename, args, wdir))
File "/usr/lib/python3.4/bdb.py", line 431, in run
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File
"/usr/local/lib/python3.4/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py"
, line 687, in runfile
namespace.pop('__file__')
KeyError: '__file__'
I can only assume it's not supposed to be like that, so I am here to ask,
is there a problem with my very simple script, is there a problem with my
installation, am I using the debugger wrong... frankly, what am I doing
wrong or what have I done wrong?
Thanks for any reply in advance :)
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.