4 ms·
A major concern to me is how to Debug Nim. Considering it compiles into C as a first step, I would have thought that Debugging may have quite a few issues and g
by SeanDav 11y ago
A major concern to me is how to Debug Nim. Considering it compiles into C as a first step, I would have thought that Debugging may have quite a few issues and gotchas as well as some good tips and tricks.
I am not sure if this is covered, but did not notice it mentioned in the contents.
- gokr 11y agoDebugging via gdb and frontends using gdb like KDevelop or QtCreator works very well - except data drilling. But that may be solved eventually.
- z92 11y agoBut gdb probably will point to C source line instead of nim's source. That might be a problem.
- gokr 11y agoNo, you get Nim source code debugging using line number directives etc, works great including breakpoints and all. I have tested several IDEs and it works. But data inspection does generally not work - that would require some work to support GDB protocols.
- stevedonovan 11y agoFortunately, GDB is scriptable in Python. The C++ add-ons make life so much easier, no reason it can't be done for Nim.
- dom96 11y agoThis will be covered as part of Chapter 5.