Re:Why I Write Games in C
by Keyframe on Saturday January 09, 2016 @09:57AM
(#10871423)
If Nim compiles down to C and then you compile/link that.. How in the hell do you debug that?
[ Parent
| on HN ]
Nim seems close enough to C that you should be able to use the #line directive to map lines of C to lines of Nim source, keep variable and type names the same, and just use gdb.
Yep, that works well enough: http://hookrace.net/blog/what-makes-nim-practical/#debugging...