mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-28 19:36:34 +00:00
documented object constrs; endb works again
This commit is contained in:
17
examples/debugging.nim
Normal file
17
examples/debugging.nim
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user