Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dr Watsons - How to debug - grrrrrrr?

Status
Not open for further replies.

zippyhm

Programmer
Jan 8, 2003
7
GB
Hi guys.
Hope everyone is full of holiday cheer.

I however am not - I have a an application that was built in PB 6.5 and have just recently upgraded it to PB 8.0.4
Thing is I have had 2 bugs returned to me - which crash the system with Dr Watson's.
This never happened in 6.5 and when I run it through powerbuilder - it doesn't crash. How on earth can I debug this?????

Any ideas would be much appreciated.
Cheers
Zippy
 
hmmm....its pretty hard to find out whats causing this dr.watson issues - try regenerating all objects (or) comment the lines you believe is causing this problem

in my experience, the above technique with some patience has done the trick for me

cheers
MM - another victim of the evil Dr.Watson
 
Check out the PowerBuilder Trace functions. These will allow you to start a Trace file programmatically from within your application while its running. The primary ones are TraceOpen, TraceEnableActivity, TraceBegin, TraceEnd, and TraceClose but there are others to help you fine tune what goes into the trace file.

Since the errors only occur from the executable you will of course have to add these functions to your code at some point before you know the errors occur and then recompile your application. The trace file will not tell you specifically why the error is occurring but it should give you an indication of which line in your code (and thus what activity) is generating it.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top