![]() ![]() nim c -debugger:native test.nim Debug simple program with GDB ![]() You need to add -debugger:native option when you compile your program like following example command so that you can debug your program with GDB. Compile your program so that you can debug it with GDB You can also install it alone with scoop install gdb command, but it is older than the GDB included in gcc. If you use package manager Scoop on Windows, GDB is installed when you install gcc with scoop install gcc. If GDB is not installed on your PC, install it using your package manager (apt, pacman, emerge, etc). ![]() You can check if GDB is installed on your PC with following command. There is official Nim GDB Youtube Video.If you want to learn more about GDB, check GDB User Manual. You can stop your program at specified point and print a value of variable or run it line by line. Compile your program so that you can debug it with GDB.If you found my articles interesting or useful, please donate using following links: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |