display variable values

pillesoft
2006-04-28
2013-03-15
  • pillesoft

    pillesoft - 2006-04-28

    Dear All,

    in my eclipse-pydev configuration debugging jython i cannot see the complete value of a string variable.
    is there a way to do so?

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2006-04-28

      Well, if it is a huge string, the debugger will not get it completely because this could crash Eclipse (really).

      So, if you're using the extensions, you can just use the console to print that variable to you and if not, well, you'll need to print that string to some file to be able to see it -- you can do that by adding a watch expression as:

      open('c:/temp/test.txt', 'w').write('foo')

      and removing it just after you got the results in that file.

      Cheers,

      Fabio