Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-600

CLI Debugger: Allow for duplicate breakpoints with different conditionals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: s10
    • Component/s: None
    • Labels:
      None

      Description

      Currently, if you have two breakpoints on the same element with different conditionals, only the first is applied. All breakpoints should apply.

      To test:

      ~/NGF/dfdl (master) echo "3,3,0,3,0,3,3,1,2,3,4,5,6,7,8,9,1,2,3,2,2,2,2,3" > input.txt
      ~/NGF/dfdl (master) ./daffodil-core/target/start -d parse -s daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd -r matrix input.txt
      (debug) break element.cell
      (debug) break element.cell
      (debug) condition 1 dfdl:occursIndex() mod 2 = 1
      (debug) condition 2 dfdl:occursIndex() mod 2 = 0
      (debug) display info arrayIndex
      (debug) info breakpoints
      breakpoints:
      1: element.cell dfdl:occursIndex() mod 2 = 1
      2: element.cell dfdl:occursIndex() mod 2 = 0
      (debug) continue
      arrayIndex: 1
      (debug)
      arrayIndex: 3
      (debug)

      second continue should output "2" instead of 3.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks