Torque
  1. Torque
  2. TORQUE-239

create debug output to determine where a snippet came from

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: Generator
    • Labels:
      None

      Description

      Given a generated output, ist is difficult to know which outlet produced a specific part of the output.
      To ease this, a switch should be made available which produces commenst which tell the start or the end oaf the output created b a certain outlet. e.g. for a source
      <root>
      <field name="i/>
      <field name="j"/>
      </root>
      from which a simple java class
      public class someClass

      { int i; int j; }

      is produced, the debug-enriched output could look like

      // start output of outlet Frame, current source element is root
      public class someClass

      { // start output of outlet Frame, current source element is field int i; // end output of outlet Frame, current source element is field // start output of outlet Frame, current source element is field int j; // end output of outlet Frame, current source element is field }

      // endoutput of outlet Frame, current source element is root

      for this, the controller mist jnow the type of the produced output (java, xml, properties etc) to determine the format of comments. A fallback should exist for an unknown output type.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development