Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does astackinfo() work with Debug Info?

Status
Not open for further replies.

pctest

Programmer
Apr 12, 2004
89
US
After I build an exe with the Debug Info checked, what should astackinfo() return if there is an error?

Note: The methods in both scx and vcx are stripped out before building the exe.

This is my finding:

If the error is from scx, it will able to show line # and source code.

If the error is from prg, it will able to show line # but no source code.

If the error is from vcx, it will NOT able to show line # or source code.

Are my finding correct?


Thank you for any help.

 
In general, it's always a good idea to provide the version and service pack level of the VFP you are using. Often that can make a difference in how things work (or not!).

Rick

 
Hi Rick,

I use both VFP 6 SP5 and VFP 8 SP1.
 
Sorry, I was unable to get back into the new and improved TT.

After re-reading the original posting, I realized that it really wouldn't matter what version you are using. When you strip the out the methods, then you've thrown away any source code debugging information. I'd suggest you need to check your technique for stripping, because the .VCX and .SCX files are formatted the same, so they should both produce no info.

I guess it's more a question of why you would bother to include debug information if you are trying to protect your source code by stipping the methods? If VFP does save redundant information in the .SCX, for debugging why give it away?

Rick
 
Rick,

I only want to show the line # but not the source code. It seems that will work for prg only. Regarding the difference between VCX and SCX, this is the part I don't understand since I simply replace all methods with "" in both scx and vcx before building the exe.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top