main logo
Subject: Re: 2.6 to VFP 9
Author: Virgil Bierschwale
Posted: 2007/04/30 22:08:28
 
View Entire Thread
New Search


actually this sounds like the same technique I use in 2.6 where I do a
wait window with the prg name, etc...

My problem is that all the normal debugging stuff that I normally do
does not work.

For instance, if I put a "set step on" in the form I'm working on, and
run the EXE, it should bring up the trace window if it was compiled with
"debugging on".

it doesnt ??? and thats sure ruining my day <grin>

Whil Hentzen (Pro*) wrote:
>> I guess whats frustrating to me is that I can put together a basic
>> system in VFP if I develop it from scratch, but this system I'm working
>> on with no documentation where they have security, oracle and sql server
>> backends is kicking my butt and I still havent been able to sucessfully
>> trace my way through the program which is usually how I learn things.
>>
>
> First thing you want to find out is how much procedural, how much oop.
>
> Do they generally have their code in PRGs, SCXs or VCXs? (Usually a
> combination of all three...)
>
> So the first thing I do with a new system (new to me, old to the other
> guy) in order to figure out what's going on is to trace the code... by
> using my very favorite command, debugout. The important trick here is to
> identify WHAT function you're in when you use it. For example, instead
> of just typing
>
> debugout 'mid-way through the main prg, about to run the login screen'
>
> you want to put things like
>
> debugout 'main.prg: about to run login.scx'
> debugout 'main.prg: done running login.scx, about to check permissions'
> debugout 'main.prg: about to run table-opening function'
>
> so then in your debugout window, you can see what's happening.
>
> Then, in login.scx, you put debugout code in any method that already has
> done (watching for lpara statements, of course <s>):
>
> debugo 'login.init(): loading form'
> debugo 'login.init(): about to populate combo box arrays'
>
> that sort of thing.
>
> I'm sure this won't help as much as it ought to, but it should be enough
> to get you to answer the next question.... <s>
>
> Whil
>
>
[excessive quoting removed by server]


 
©2007 Virgil Bierschwale
<-- Prior Message New Search Next Message -->