70 likes | 139 Views
Learn about setting breakpoints, using the debugger, inspecting objects, and utilizing System.out.println for effective debugging. Explore profiling through a monitoring program, and delve into creating Random Art using Java. Discover VisualVM tool provided in the JDK's bin folder.
E N D
Debugging Q: How is debugging like real estate? A: It's all about location, location, location Setting breakpoints in Eclipse Using the Debugger Inspecting Objects System.out.println
Profiling • Program that monitors a running program and determines time spent in functions as well as memory usage
Profiling Example • Random Art • Determine color of pixel based on coordinates and mathematical formula • formula may have 40 or more calculations per point
Java VisualVM • Comes with the JDK • in the bin folder (binaries)