Commenting Actions in Xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Commenting Actions in Xlate

  • Creator
    Topic
  • #48429
    Rentian Huang
    Participant

      Greetings Cloverleafers!!!

      Has anyone had an error in your Xlate and was trying to remove all Actions (COPY, COPY, CONCAT, CALL…) one by one to figure out which Action was the causing the problem, and you HAVE to DELETE them one by one

      Would it be GREAT to have a comment function to just temporary shade (NOT delete) an Action? Like the “#” or “;#” in Tcl.

      I would be in great joy to see this feature in any future QDX upgrade.

      Sam  8)

    Viewing 2 reply threads
    • Author
      Replies
      • #58618
        Mike Grieger
        Participant

          Not that it addresses the ability to comment out an action, which I too think would be a nice feature, but for troubleshooting a Translation Error, I find it easier to use a debug statement versus removing line by line.  That is, put a Copy @null to @null action with a tcl ‘puts’ statement just to echo out a debug message.  Then using the Xlate testing tool, if the echo message does echo out, the problem is lower in the Xlate, so I move the debug statement lower (kind of using binary sort method – put the debug in the middle of the Xlate, then in the middle of the section you check next, depending on if the debug tells you the issue is down further, or back up higher).

        • #58619
          Rick Martin
          Participant

            Hi Sam,

            That would be a nice feature addition.  

            What I’ve done in the past is to add an IF action

            IF =0 eq =1

            and then move the action I want to temporarily remove under it.

            Rick

          • #58620
            Bill Bertera
            Participant

              I usually just throw a bunch of echo statements in the PRE section of all/some of the COPY statements.

              echo 1

              echo 2

              echo 3

              etc…

              where it stops, the next is your bad statement…

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.