Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TIP OF THE DAY: Losing Debuginfo without lineno in errors
Message
From
09/12/2000 01:11:54
Walter Meester
HoogkarspelNetherlands
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
TIP OF THE DAY: Losing Debuginfo without lineno in errors
Miscellaneous
Thread ID:
00451117
Message ID:
00451117
Views:
111
Hi all,

I just discovered you can easely build your apps without debuginfo BUT with the possibility to capture the linenumbers on which an error occured.

If you're like me, the need to capture the linenumbers is higher than the disadvantage of having all the sourcecode compile into the exe. I wondered why compiled PRGs (FPX) did not need the full sourcecode to retrieve the line on which an error occured while forms and classes do.

When you try to blank the methods fields of both classes and forms before building the application it will result in the same effect as having the 'include debuginfo' unchecked: No linenumbers available in an errorevent.

However if you replace all method fields with a '*' (I haven't tried it with another character yet) before you build your application, you've excluded all sourcecode (ascii sourcecode and comments) but are able to retrieve the linenumber in case of an error event.

I tested this in the following manner:
- I made a copy of my project files
- In the copy: In all forms and claslibs, I replaced all methods fields with "*"
- packed all forms and classlibs
- build a executable with BUILD EXE MyExe FROM MyPrject (of course without the RECOMPILE clause)

The result, No sourcecode in the executable, a significant smaller executable and still be able to track linenumbers in case of an event.

So far, I did not note any side-effects. I'll hope this turns out to be a proper method to reduce the size of the executable.

Regards,

Walter,
Next
Reply
Map
View

Click here to load this message in the networking platform