Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing VFP to Internal Refresh of Breakpoints
Message
From
27/11/2005 22:12:06
 
 
To
27/11/2005 20:21:08
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01072274
Message ID:
01072329
Views:
32
The file created by 'File -> Save Configuration' is the same structure as the memo field (data) in the FoxUser.dbf (with a couple of extra lines at the end). This file is easy to create (already creating structure to write to memo field), but if the debugger is not open, is there a way to load this file? With the debugger open, it could be loaded by KEYBOARD (not pretty, but workable). I would prefer to be able to set the breakpoint settings directly in the resource table but need a way to force VFP to dump and then reload these settings. Do you know if VFP will respond to SENDMESSAGE (I could possibly determine what message is being sent during the menu command in the debugger and then duplicate)?


>If you're using Debug frame, you can save current Debugger configuration (including breakpoints) with 'File -> >Save Configuration' and restore it with 'File -> Load Configuration'. The file created is in ASCII text format so >you can easily create/modify it.

>>I have developed a UDF that will set/clear a breakpoint in the FoxUser.dbf (default resource file). I can USE >>the resource file after executing the UDF and goto to the appropriate record (id='BPOINTS') and see that the >>breakpoint is set (or cleared). However, executing the breakpoints dialog (Ctrl-B) does not see the change >>applied by the UDF. Reopen the resource table and the breakpoint data is set. However, if you close VFP and then >>restart VFP and now open the resource table, any changes previously made by the UDF are not present.
>>
>>Further testing of setting Breakpoints (using VFP and not UDF) and then viewing the results of setting/clearing >>breakpoints in the resource table does not show that the breakpoint information is being immediately updated in >>the resource table. It appears that VFP reads the breakpoint resources once at startup and then writes the >>information only at shutdown.
>>
>>So the effect of the UDF is being eliminated. My question is, does anyone know of a way to force VFP to perform >>a flush of the breakpoint settings to the resource table and then initiate a re-read of the breakpoint settings >>from the resource table within the VFP development environment without a shutdown of VFP?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform