Hello Fabio,
( Just want to say I love Pydev Extensions, my company has purchased 10 licenses.I love programming with it :) )
I am embedding Python 2.5 into a Verilog simulator as a SystemVerilog DPI application.
I am using the remote debugging feature.
I am able step Ok into the code (F8), however at a breakpoint, when I type 'print 1' and press enter twice, I don't see anything in the output.
I am able to see result of console evaluation OK when debugging a script which is launched from within Eclipse.
I saw an earlier similar post, suggesting to me that the simulator might be "stealing" my output (although I do see python print statements from my embedded script in the simulator log file).
Also, when my code gets an exception, it seems nothing is printed at all - I have to guess what part raised the exception (or carefully F8 into it until it suddenly returns to calling function).
How does the "plumming" work between the embedded script and debugger? maybe I can understand better.
Would it be possible to get console output saved in a file for debug purposes?
P.S. Whenever I hit F8 over a python print statement, the following is printed in the XTerm that I launched Eclipse from:
java.io.IOException: Read end dead
at java.io.PipedInputStream.checkStateForReceive(Unknown Source)
at java.io.PipedInputStream.receive(Unknown Source)
at java.io.PipedOutputStream.write(Unknown Source)
at java.io.OutputStream.write(Unknown Source)
at com.python.pydev.debug.model.ProcessServer.writeToStdOut(ProcessServer.java:122)
at com.python.pydev.debug.model.PyDebugTargetServer.processCommand(PyDebugTargetServer.java:77)
at org.python.pydev.debug.model.remote.DebuggerReader.processCommand(DebuggerReader.java:96)
at org.python.pydev.debug.model.remote.DebuggerReader.run(DebuggerReader.java:120)
at java.lang.Thread.run(Unknown Source)
Many thanks in advance,
Gal.
Logged In: YES
user_id=1651520
Originator: YES
sorry I did not mean to say F8, I mean 'step over'.