[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Run time debugging for includes



PureBytes Links

Trading Reference Links

Herman,

I agree with you that real breakpoint/step in AFL would be a problem due to the nature of the way it works now, though it is not impossible to conceive of ways to simulate the desired functions.  

I outlined some of the steps I use to get something reasonable, but it takes some editing of the file to get it.  For instance I add a if(x) SayAndWait( "lineNumber" + "variableValue"); between lines I want to explore while they are running.  It slows the execution to a crawl in the desired section and you can hear and see the results.  I have found a few tricky bugs this way.

I suppose it would be possible to write a function that could be put between each line that would essentially halt the execution until a key was pressed for each new step (like the shift key).  The function could say things, though I am not sure if it could write things out with Gfx or popups.  I would have to experiment to find out if they are immediately executed, though a JScript would execute right away.  The function could also send trace data to the trace window.  If you really really want to get fancy, you could actually open the formula file and find the line that is being stepped (need to have a serialized marker) and log that line text to the trace window like your Echo() suggestion.  

Your Echo() idea is interesting because it would create a listing of the program as it is being executed.  That could also be combined with the above ideas.  

It just comes down to if you are willing to edit the source with a function on each line you want to trace.  It would be tricky to write the first time, but then the function could be included in any formula.

You gave me some more food for thought.

Thanks,
Dennis

On Feb 12, 2009, at 7:34 AM, Herman wrote:

Agreed, however this may be significant work for TJ. A simple _Trace enhancement (see Suggestion 1622 ). This would allow the user to select a block of code and toggle line-logging On/Off. Execution flow is often a problem and this method would take care of this. wrt inspection of variables... ideally variables altered would be shown in the log - simlar to expanding the Trade List (Detailed) in the AA.

best regards,
herman


Thursday, February 12, 2009, 7:25:18 AM, you wrote:

> I believe one of the biggest improvements in debugging any afl, 
> whether it is an include file or not, is the ability to step through 
> the code line by line and set break point. Something similar to 
> Microsoft script editor would be a big improvement.



> ------------------------------------

> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.

> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com

> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> (submissions sent via other channels won't be considered)

> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:

> Yahoo! Groups Links

> <*> To visit your group on the web, go to:

> <*> Your email settings:
>     Individual Email | Traditional

> <*> To change settings online go to:
>     (Yahoo! ID required)

> <*> To change settings via email:

> <*> To unsubscribe from this group, send an email to:

> <*> Your use of Yahoo! Groups is subject to:







__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___