documented object constrs; endb works again
This commit is contained in:
parent
2b4922aea0
commit
a64d4dc35c
11 changed files with 152 additions and 143 deletions
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue