J
Jeff Ledbetter
Guest
Gladly, but the details are not that interesting. Maybe “debugging” isn’t the proper word… J Let me preface by saying that most (if not all) of our customers are pretty technical so that provides a bit of comfort level when it comes to asking customer to restart appservers, adding logging levels, etc. If our customers were non-IT types than a different approach would be necessary. The most prevalent method we use is to log unexpected errors at the moment they occurred, format the error message to include the PROGRAM-NAME function, and pass that back out to the caller. Usually this includes enough information for our support to have a good idea of what went wrong. Many of our customers start their sessions with –debugalert so they can send us the stack-trace right away as well. Although, they may not necessarily be a useful stack-trace. Another approach we do is using the ERROR-STACK-TRACE. Since the OE user guide suggests this could impose a performance penalty, we only use it when speed is not the top priority. At the top level of the process, we turn it on and then turn it back off in a finally block In these cases when an error occurs, we have the opportunity to capture the trace for the exact error occurs. We also write XML of any relevant data. Our fallback is our course having users change the logging level and types, restart their session, and try to dupe again and send us the log. That is, of course, the least preferred method but sometimes necessary. In our plug-in, we can enable debugging at the package level which will output the data moving back and forth between the server to the Eclipse console. That is pretty helpful as well. Jeff Ledbetter www.roundtable-software.com email: jeff.ledbetter@roundtable-software.com skype: jeff.ledbetter From: Mike Fechner [mailto:bounce-mikefechner@community.progress.com] Sent: Saturday, December 6, 2014 9:13 AM To: TU.OE.Development@community.progress.com Subject: [Technical Users - OE Development] AW: How do you log debug messages in shipped code? AW: How do you log debug messages in shipped code? Reply by Mike Fechner “I’ve tried a few different approaches and I’ve not come up with something that I am completely happy with.“ Jeff, would you share more details with us? Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...