thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

debug with local variables #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I posted this issue some time ago, but using pyscripter for more than two 
years, this is for me the main issue pyscripter faces: debugging with local 
vairables like the following script:

def local(a):
    a = a + 1
    print a

local(13)

the value of the local variables a can't be changed debbuging the script. I 
know that this is a Python limitation, that the locals() dictionary is 
read-only. But how do other IDEs like Wing-IDE provide the possiblity to change 
the value of local variables? This is for me the only big remaining limitation 
of PyScripter.

Is there no possibility to change this?

Original issue reported on code.google.com by mproel...@googlemail.com on 1 Aug 2010 at 12:59

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 17 Sep 2010 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 30 Sep 2010 at 3:22

GoogleCodeExporter commented 9 years ago
Fixed in version control
=========================
def f():
    a = 1 # break here
    print (a)

f()
==========================
[Dbg]>>> a
1
[Dbg]>>> a = 2
[Dbg]>>> a
2
[Dbg]>>> 

With python 2.4 you need to have ctypes installed for this to work.

Original comment by pyscripter on 9 Oct 2010 at 10:31