On 9/24/07, Sander Smits <[EMAIL PROTECTED]> wrote:
>
>
> Hi Fabio,
>
> I have put import pdb;pdb.set_trace() at the end of my "if __name__ ==
> '__main__'" block and see this in the console, when i enter "len(sss)"
> (sss
> is a variable declared in the block):
>
> --Return--
> >
> /Users/jsmits/Documents/jython_src/jython/dist/Lib/pdb.py(992)set_trace()->None
> -> Pdb().set_trace()
> (Pdb) len(sss)
> *** NameError: sss
> (Pdb)
>
> So, I'm not able to access the variables. What could be wrong here?
>

You only have access to variables in that context... so, either you put the
pdb.set_trace() in the context you want to debug or you have to import the
module you want to access its variables.

Cheers,

Fabio
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to