Interactive pyDev console at breakpoint

前端 未结 4 1471
Happy的楠姐
Happy的楠姐 2021-01-06 06:50

I\'m using Aptana Studio with Pydev 1.5.3 to debug my Django applications. I use PyDev\'s remote debugger and some code in manage.py and for most of the time this setup is w

相关标签:
4条回答
  • 2021-01-06 07:32

    With PyDev 1.5.5 it should be possible:

    1. In "Variables" view, you can right-click on a name, then select "change value".
    2. The console is working as well, albeit a bit tricky.
      It is only for inspection and in a very strange way: you have to input the text in the "Debug server" console, and you will get the output in the "filename" console.
      Note also that you need to press enter twice, leaving an empty line.

    While the "empty line" trick is documented, the issue about two different console for input and output is not, and I think it may be a bug.

    0 讨论(0)
  • 2021-01-06 07:41

    strange, i am using pydev 1.5.6 for remote debugging and I can use the interactive console - i type the cmmand, hit enter, after a while get results back; check your firewall is not blocking anything (if you are sure, the interactive console works in local mode). there is even settings in pydev source code to set how much of stdout should be returned back to client (in chars), it should work

    0 讨论(0)
  • 2021-01-06 07:44

    On my development stack running Apache + mod_wsgi entering commands into the console had their output routed to the site's error logs. To resolve this you have set the stdoutToServer=True and sterrToServer=True to route capture all output to the PyDev remote debugger:

    from pydevsrc import pydevd;pydevd.settrace('192.168.2.8', stdoutToServer=True, stderrToServer=True) #clone and put on python path: https://github.com/tenXer/PyDevSrc
    
    0 讨论(0)
  • 2021-01-06 07:46

    After some digging I discovered that I can use Expressions view to access variables properties and view results of class methods, but that still isn't a complete console at breakpoint though.

    0 讨论(0)
提交回复
热议问题