Announcement

Collapse
No announcement yet.

Can you turn off all DEBUGS ?

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

  • Can you turn off all DEBUGS ?

    Can you turn off all BEBUGS ?
    (1) I know you can turn off all debugs with tools.
    (2)Is there a simple command in efs that can be either
    "YES" or "NO" for all Debugs ???
    Larry Dudash
    HAL at
    http://share.esignal.com/groupconten...r=&groupid=549

  • #2
    Hello Larry,

    Yes this can easily be accomplished with a Boolean function parameter. Add the parameter like the example below and then put all your debugPrintln() statements inside a conditional if() statement that checks against this Boolean parameter.

    PHP Code:
    function preMain() {
        
    setStudyTitle("test");
        
    setShowCursorLabel(false);
        
        var 
    fp1 = new FunctionParameter("bDebug"FunctionParameter.BOOLEAN);
            
    fp1.setName("Enable Debugprints?")
            
    fp1.setDefault(true);
    }

    function 
    main(bDebug) {
        if (
    bDebug == truedebugPrintln("Debug printing is ON");
        return;

    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

    Working...
    X