File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


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: 11356
    
  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 )
 
GeeCON Prague 2014
 
subject: Bug-fixing