We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've started contributing to Processing by trying to fix an issue listed on GitHub. However, I cannot directly trace the exact place where the bug occurs by just looking at the stack trace printed on the Processing console. Can anybody suggest me a method to run processing in debug mode? (Please suggest me if any specific IDE works well for this purpose) Thank you!
Answers
For these kinds of best practice questions, hopefully answers from core github contributors:
https://github.com/processing/processing/graphs/contributors
...who are also on this forum: perhaps @codeanticode @gohai @benfry
@kisarur I am probably an anti-example in that I normally just sprinkle the code with
System.err.println()
statements in order to figure things out. Years of writing code with mediocre tooling left their mark on me ;)Thanks a lot for your replies. I was finally able to fix the issue by examining the stack trace and the code a bit more. As @gohai suggests, I also use System.out.println() to track some problems. However, since 'standard out' is not always available in a GUI based app like this, it would be great idea to use 'standard error' to log things. Thanks again for mentioning that trick @gohai :)
I think there is a way to set the mode to DEBUG: https://github.com/processing/processing/blob/master/app/src/processing/app/Base.java#L153
But I failed to get it. Then I removed the condition statement and set the debug to True all the time, it works well for me. /w\