Yazeed Fares
Yazeed Fares

Reputation: 41

Debug jython scripts

I am writing Jython scripts in files and then calling them using Java, is there a way to debug those scripts?

Upvotes: 4

Views: 3331

Answers (3)

Fabio Zadrozny
Fabio Zadrozny

Reputation: 25362

Yes, you should be able to do that using a remote debugger (if you're using PyDev, take a look at: http://pydev.org/manual_adv_remote_debugger.html).

If you went the other way around (and launched your program with the entry point as a Jython program which called java code), you should use the java remote debugger instead (the trick is that the language which you didn't launch directly must be remote debugged).

Upvotes: 4

Blauohr
Blauohr

Reputation: 6003

You can use Eclipse and pydev ( http://pydev.org/ ) and use the debugger in pydev

Upvotes: 2

Jakob Bowyer
Jakob Bowyer

Reputation: 34718

You can log to stdout and/or stderr and the collect that on the java side and logging it out again.

Upvotes: 0

Related Questions