/tutorial/ace/example_debug.e

http://github.com/tybor/Liberty · Specman e · 51 lines · 41 code · 3 blank · 7 comment · 0 complexity · 56e234253a056e26167165f7fd315a5f MD5 · raw file

  1. class EXAMPLE_DEBUG
  2. create {ANY}
  3. make
  4. feature {}
  5. make
  6. local
  7. a: AUX_EXAMPLE_DEBUG_A; b: AUX_EXAMPLE_DEBUG_B; c: AUX_EXAMPLE_DEBUG_C
  8. do
  9. debug ("trace 1")
  10. -- Not executed (Default key overridden by per-class option)
  11. io.put_string(generating_type)
  12. io.put_string(": Debug 1%N")
  13. end
  14. debug ("trace 2")
  15. -- Not executed (Default key overridden by per-class option)
  16. io.put_string(generating_type)
  17. io.put_string(": Debug 2%N")
  18. end
  19. debug ("trace 3")
  20. -- Executed (Per-class option)
  21. io.put_string(generating_type)
  22. io.put_string(": Debug 3%N")
  23. end
  24. debug ("trace 4")
  25. -- Executed (Per-class option)
  26. io.put_string(generating_type)
  27. io.put_string(": Debug 4%N")
  28. end
  29. debug ("trace 5")
  30. -- Not executed (Key not set for this cluster)
  31. io.put_string(generating_type)
  32. io.put_string(": Debug 5%N")
  33. end
  34. debug ("trace 6")
  35. -- Not executed (Key not set for this cluster)
  36. io.put_string(generating_type)
  37. io.put_string(": Debug 6%N")
  38. end
  39. debug ("trace 7")
  40. -- Not executed (Key not set for this class)
  41. io.put_string(generating_type)
  42. io.put_string(": Debug 7%N")
  43. end
  44. create a.make
  45. create b.make
  46. create c.make
  47. end
  48. end -- class EXAMPLE_DEBUG