I followed this

[http://hookrace.net/blog/what-makes-nim-practical/#debugging-nim](http://hookrace.net/blog/what-makes-nim-practical/#debugging-nim)

but gdb does not stop on a breakpoint: 
    
    
    $ nim --d:debug --lineDir:on --debuginfo --debugger:native c hello.nim
    $ gdb hello
    (gdb) b hello.nim:3
    Breakpoint 1 at 0x145c: file /tmp/hello.nim, line 3.
    (gdb) r
    Starting program: /tmp/hello
    Hello World
    Value of x: 10
    During startup program exited normally.
    

Do you know what could be wrong?

nim: Nim Compiler Version 0.17.1 (2017-07-18) [Linux: amd64], gdb: 7.12.50

Reply via email to