Announcement

Collapse
No announcement yet.

Debug Mode?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debug Mode?

    Is it possible to run an EFS Study in Debug mode. I have some logical errors in my code and it sure would be helpfull if I could step through it.

    thanks
    fan27

  • #2
    Hello Fan,

    We don't have a step-through debugger currently. The best way to debug EFS formulas is with the debugPrintln() functions. You can pass a string of information to the function and it will appear in the formula output window (Tools-->EFS-->Formula Output Window). You can also use EFS functions such as getCurrentBarIndex(). Example,

    debugPrintln(getCurrentBarIndex() + " my MA Value = " + vMA);
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Thanks for the reply Jason. I figured out how to write to a file which will enable me to debug my logical errors.

      fan27

      Comment


      • #4
        FWIW, I have put together a function called trace which is in my fileshare. I am currently in the process of revising it, but it works well for what you are doing==> trace debugger

        Comment

        Working...
        X