aspose file tools
The moose likes Java in General and the fly likes Bug-fixing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Java in General
Bookmark "Bug-fixing" Watch "Bug-fixing" New topic


Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have created a desktop application using swing and hibernate. I have created the .exe (off course for windows platform). Suppose, the application crashes, or anything like that happens. Then how will i detect the bug? Hope i am able to make you understand my problem

fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11646

You have several options...

1) Hope the user can tell you what they were doing when it crashed, and you can duplicate the bug
2) have the program do some logging. However, you then have to be sure your program cleans up its log files, else you'll (eventually) fill up the disk space
3) Pray the program never crashes.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks fred rosenberger for those series of options.
Can you please provide some detail about the 2nd option? (I will also go for 3rd option )
I agree. Here's the link:
subject: Bug-fixing