Fabio Zadrozny-2 wrote:
>
>>
>> > You can as workarounds use pydev extensions (where you can inspect
>> things
>> > from
>> > the console using prints)
>> >
>>
>> You can only doing this when debugging code that is running within
>> Eclipse
>> and not when using the remote debugger, right?
>>
>
> Actually, you can... if you do the settrace in the remote machine passing
> that you want the stdout and stderr to be redirected to the server
> (eclipse):
>
> pydev.settrace(host='xxx', stdoutToServer=True, stderrToServer=True)
>
[1] Add the following breakpoint to code:
import pydevd
pydevd.settrace(stdoutToServer=True, stderrToServer=True)
[2] Start PyDev Debug Server
[3] Run the code in a external process (i.e. from command line)
[4] Eclipse Debug Perpsective activated and halts on breakpoint
[5] Note the following text is present in both the command shell and Debug
Server Console.
"PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
..."
At this point it looks like things should be working. When I type something
in the Debug Server Console, nothing happens. Any hints as to what I am
missing?
Thanks,
Patrick Smith
--
View this message in context:
http://www.nabble.com/interactive-remote-debugging-tf4523911.html#a12906405
Sent from the pydev-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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