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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Bug-fixing" Watch "Bug-fixing" New topic
Author

Bug-fixing

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Hello
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


kunal
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11241
    
  16

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 )
 
wood burning stoves
 
subject: Bug-fixing