Advanced PowerBuilder
Debugging
DLLs
To debug a DLL,
open the user object and invoke the C++ editor. Select
Targets/Debug from the menu. This option invokes the Watcom
debugger. The debugger for Windows 95/Windows NT is GUI based and
as such is a great improvement on the old DOS version. It comes
with a symbols file for PowerBuilder and actually allows you to
walk through the internals of the PowerBuilder product, along
with your own code.
From the Modules
window, double-click on the file in which the actual code is
placed, i.e. cuo_facd.cpp. This will display the code in
the main window. Click on the square brackets on the line where
you want to put break and select "Run/Go"
from the menu. This will bring the control back to PowerBuilder.
Close the User Object painter and click on the run icon. As soon
as the code reaches the line on which you put the break, control
switches to Watcom debugger where you can execute step-by-step by
pressing the F10 function key.
|