Skip to content

Nim and Seer

Ernie Pasveer edited this page Mar 21, 2024 · 1 revision

Introduction

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula.

You can learn about it at this site: https://nim-lang.org/

The gdb debugger supports debugging many languages. Seer can work happily debug Nim programs because of this. This Wiki describes how to setup Seer to work with Nim.

Here's a screenshot of Seer debugging a simple Nim program.

image

Seer Setup

A couple things are needed to setup Seer to properly debug Nim programs.

Start Seer for the first time to bring up it's configuration dialog

    $ seergdb --config

First, tell Seer to use the nim-gdb debugger.

image

Second, add Nim source files to the list of valid source file that Seer needs to know of.

image

Make sure to save the configuration changes:

    Settings -> Save Configuration...

Quit Seer and now you should be able debug something.

    $ seergdb -s mynimprogram

Resources

https://nim-lang.org/
https://nim-lang.org/blog/2017/10/02/documenting-profiling-and-debugging-nim-code.html
https://internet-of-tomohiro.netlify.app/nim/gdb.en.html
https://github.com/cooldome/Nim-gdb
https://github.com/nim-lang/Nim

Feedback

I'm no Nim expert. If there are problems in Seer handling Nim programs, let me know. Also any feature improvements are always welcomed.

Clone this wiki locally