Have you checked the variable explorer (by default it should be by the tab
of object inspector)? It will display all variable values including the
current scope when you debug and watch. For example:
def func():
for i in range(100):
j = i
func()
You can set a breakpoint at j = i and see in the variable explorer that
both i and j are incrementing.
Shawn
On Wednesday, February 3, 2016 at 11:42:12 AM UTC-5, Lei Shi wrote:
>
> Hi,
>
> I have been using Spyder's debugging tool for several times. I was
> wondering if there is a way to add some expressions (valid for current
> scope) to the default variable viewer, I would like to watch their values
> along the way. Now I have to type print statement in pdb console every
> time, it became too much trouble when I am going through a long loop...
>
> I searched online for answers, and I found some discussion about viewing
> user defined type variables, and similar things. But I didn't find a
> specific answer for what I was looking for. Could someone help me?
>
> Thanks!
> Lei
>
--
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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.