I am writing Jython scripts in files and then calling them using Java, is there a way to debug those scripts?
3 Answers 3
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).
4 Comments
You can use Eclipse and pydev ( http://pydev.org/ ) and use the debugger in pydev
1 Comment
You can log to stdout and/or stderr and the collect that on the java side and logging it out again.