Re:Nim Programming Language 0.14.0 released
by dom96 on Wednesday June 08, 2016 @09:19AM
(#11862061)
Pretty much the same way you can any other language. GDB/LLDB works fairly well with Nim, but personally I just use a couple `echo` statements when I need to debug anything.
[ Parent
| on HN ]
Yup, the source code still appears in GDB and with a bit of tab completion, inspecting variables ain't that hard, either. I've had worse experiences with C code that abused the preprocessor.
Re:Nim Programming Language 0.14.0 released
by michaelcampbell on Wednesday June 08, 2016 @11:30AM
(#11862875)
`printf` debugging is still often the easiest way to go.
Re:Nim Programming Language 0.14.0 released
by PeCaN on Wednesday June 08, 2016 @01:28PM
(#11863938)
GDB looks intimidating, but once I decided to try it I'd never go back to printf debugging.
Re:Nim Programming Language 0.14.0 released
by michaelcampbell on Wednesday June 08, 2016 @04:11PM
(#11865269)
Oh yes, I've used it for many years (though many years ago). For me it depends on the size of the program and the compile time; if it's a short one and compiles quickly, I'll throw a print/puts/print/echo in there just to see what's going on.
Re:Nim Programming Language 0.14.0 released
by girvo on Wednesday June 08, 2016 @08:48PM
(#11866841)
That's what happens with "real" debuggers, in my experience! Though Codebug (for XDebug in PHP) is what did it for me, but now I'm using interactive debugging wherever I can. Beats the hell out of trying to print out variables.