This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm wondering of others have run into this weirdness: I'm working on a servlet (a very simple one now) and I was getting "500 Internal Server Error", so I thought I'd put in some breakpoints with System.out.println(). Well, these *USED* print out in the "Output" window in Netbeans 6 (as I recall), but not in Netbeans 7. For the life of me I can't figure out why this doesn't work. I created the famous "HelloWorld" Java application and it works with System.out.println() - I get output in the "Output" window of Netbeans, but apparently it's broken for servlets now? I eventually found my problem that caused the 500 error - no thanks to println.
Anybody know what is going on that it doesn't work? Or how to make it work? Any suggestions for debugging something like this WITHOUT using console output? Thanks!
I know this is not exactly the answer you are looking for, but I strongly suggest that you use logging for this purpose. And then log to the file and console. At least this way if the IDE does something funky with console output, you still have the log file.