debugging.nim 271 B

123456789101112131415161718
  1. # Simple program to test the debugger
  2. # compile with --debugger:on
  3. proc someComp(x, y: int): int =
  4. let a = x+y
  5. if a > 7:
  6. let b = a*90
  7. {.breakpoint.}
  8. result = b
  9. {.breakpoint.}
  10. proc pp() =
  11. var aa = 45
  12. var bb = "abcdef"
  13. echo someComp(23, 45)
  14. pp()