5

Just as the title says, when I run my program it deletes the output from running the program the last time. I have tried going into preferences and disabling the limit on console output, and deselected the "remove terminated launches when a new launch is created" box. Any other ideas? For example: If my output in the console reads "Hello", how could I keep that "Hello" in the console when I run my program again? So in the end it would read "Hello" "Hello"

homidhomi4
  • 113
  • 11

2 Answers2

1

I don't think there is a way to do this ... apart from modifying Eclipse yourself.

Suggestion: run the application outside of Eclipse; e.g. at the command prompt.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
  • 2
    Damn, okay thanks. I'm doing a project that takes input and prints something out, and it would make printing it (physically) a lot easier. Thanks though! – homidhomi4 Nov 08 '15 at 03:58
  • 1
    Do you have any idea if other IDE's will not clear the console, or is that just a standard thing? – homidhomi4 Nov 08 '15 at 04:00
  • 1
    I only use Eclipse, so I can't answer that. However, given that the purpose of an IDE is code *development", I'd *expect* them all to behave this way, at least by default. – Stephen C Nov 08 '15 at 04:17
  • jGRASP appends each console log to the previous one. – Kartik Chugh Jul 12 '17 at 02:21
1

If you're running on a server (e.g., tomcat) from within Eclipse you can go to the Server view, double-click your server, click Open launch configuration, then Common, then Output file. From there you can specify an output destination on your file system or in your Eclipse workspace.

This doesn't answer your question exactly, but addresses your subsequent comment re: printing.

Woodchuck
  • 3,869
  • 2
  • 39
  • 70