See datawindow content in debug modeTag(s): Datawindow


It's very strange that Powerbuilder does not provide an easy way to examine a datawindow or datastore current data when running in the debugger.

One way is to add a watch variable on the datawindow/datastore pointer with this expression.

[dw or ds instance variable].object.datawindow.data
to show in the watch window the datawindow/datastore content. But the output is very "raw"...

A better way is to use to same idea but save the current datawindow/datastore data to a file.

[dw or ds instance variable].saveas("c:\mydatawindow.dat", text!, true)
At each step, the file will be updated with the current data.
fn_item_code  fn_item_type_code      hilmt_super_flag
ADMIN_ACCESS_D_ADDRESS   MODE   N
ADMIN_ACCESS_D_ADDRESS   MODE   N
ADMIN_ACCESS_D_ADDRESS   MODE   N
ADMIN_ACCESS_D_BROKER     MODE   N
ADMIN_ACCESS_D_BROKER     MODE   N
ADMIN_ACCESS_D_BROKER     MODE   N
...
You can use like BareTail to see the update live!
blog comments powered by Disqus