devxlogo

Using Println Statements in the Debugger

Using Println Statements in the Debugger

Println statements are very useful for debugging applications, but do you view the output when an applet is running in the debugger? By default, when you create a Visual J++ 6.0 project and run it within the debugger, the applet is actually run via the Wjview.exe application. This application interacts with the Visual J++ IDE. It also eats all system.out.println statements.

However, you can see all of your output quickly and easily by changing a debugger default. To do that, choose Project –< Properties from the menu, then select the Launch tab, if it isn't already selected. Then check the Launch As A Console Application check box. Now, when you run your applet, you'll be greeted with what appears to be a DOS window, which contains all your System.out messages.

See also  lenso.ai - an AI reverse image search platform
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist