Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2823

Re: Viewing datawindow data in debugger

$
0
0

Hi Aron;

 

  This is so easy to implement in PB Classic! Here are the basics I use in my frameworks to implement DW buffer viewing in the PB Debugger:

 

1) Create a "base" ancestor for all your DW Controls (DC).

 

2) Add an instance variable array to the base DC to hold the data from any DW buffer.

    Any     ia_dw_data [ ]

 

3) On the ancestor DC's RetrieveEnd event, code the following:

      ia_dw_data = THIS.Object.Data.Primary

 

4) Now just comment or un-comment the above line in the base ancestor DC to use this in your PB IDE debugging session. In the PB Debugger just introspect the "ia_dw_data" variable to see your DW's primary buffer contents in the debugger itself.

 

 

  My frameworks use a much more intricate DW buffer snooping - but, still based on the above approach. I am sure that you can take the basics I laid out here and improve it for your needs.

 

Tip: Comment out the #3 code line above when you build your application .EXE for production to maintain performance. 

 

HTH

Regards ... Chris


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>