Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Keyframe
· 10y ago · 0 comments
If Nim compiles down to C and then you compile/link that.. How in the hell do you debug that?
Comments
[–]
Rusky
10y ago
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.
[–]
def-
10y ago
Yep, that works well enough:
http://hookrace.net/blog/what-makes-nim-practical/#debugging...