mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
18 lines
271 B
Nim
18 lines
271 B
Nim
# Simple program to test the debugger
|
|
# compile with --debugger:on
|
|
|
|
proc someComp(x, y: int): int =
|
|
let a = x+y
|
|
if a > 7:
|
|
let b = a*90
|
|
{.breakpoint.}
|
|
result = b
|
|
{.breakpoint.}
|
|
|
|
proc pp() =
|
|
var aa = 45
|
|
var bb = "abcdef"
|
|
echo someComp(23, 45)
|
|
|
|
pp()
|