Clarity

  • 1.  What tool to use for debugging GEL scripts?

    Posted Oct 12, 2010 07:06 AM
    Hi everybody!  First of all I'd like to say hello as this is my first post here!  Now the question: what tool (if any) do you use when authoring GEL scripts? The typical logging or sending console messages features are not sufficient as "serious" coding comes to play.I am talking about setting breakpoints, watching variables, building watch expressions, ets. Is there anything like this available?  Sincerely,Pawel Krystosiak


  • 2.  Re: What tool to use for debugging GEL scripts?

     
    Posted Oct 12, 2010 07:06 AM
    Hi Pawel,     I checked with some folks here and they just use Ultra Edit, which is just a fancy text editor.   Not sure if that is enough to meet your needs but thought I would pass it on.    Regards,Chris


  • 3.  Re: What tool to use for debugging GEL scripts?

    Posted Oct 12, 2010 07:06 AM
    Hi guys  Here's what I do: it's not really debugging, but a general suggestion on how to more easily turn on or off logging messages.1) In the beginning of the GEL Script, I set this variable, to control my debugging level:       1 2) If there will be other GEL Scripts in the same process, I usually persist that variable:                     3) Througout the GEL I create messages that show up or not depending on the values of that control variable. A few examples:These messages will only show if DebugLevel is at least 1      
               
                >Studio Project: ${vStudioProjectID}"/>
                >Persisted XOG URL   : ${XOGURL}"/>
                >Persisted LOG Folder: ${XOGlogFolder}"/>
                >Persisted SessionID: ${sessionID}"/>
                >Persisted DebugLevel: ${DebugLevel}"/>
            This message will only show if DebugLevel is at least 2                  
                           
                     
     Using this method you can actually create several messages in your script (with different levels of debugging) and instead of removing them once they are no longer necessary, you just set a lower value in "DebugLevel". That way you preserve your messages for when you need to debug again.    Hopethis helps you!Alex  


  • 4.  Re: What tool to use for debugging GEL scripts?

     
    Posted Oct 12, 2010 07:06 AM
    Adding a note to push this forward after board consolidation.