• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.println not showing output in Netbeans 7

 
Bruce Juntti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic