Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable --debugger:native by default #24749

Open
arnetheduck opened this issue Mar 5, 2025 · 0 comments
Open

Enable --debugger:native by default #24749

arnetheduck opened this issue Mar 5, 2025 · 0 comments

Comments

@arnetheduck
Copy link
Contributor

A simple way to improve the debugging DX is actually to just enable --debugger:native by default - this is useful on its own when running nim in gdb, and really shines when https://github.com/status-im/nim-libbacktrace is also enabled.

The default stacktrace/linetrace implementation as many limitations: it's slow, covers only the nim parts and doesn't work with tooling (profilers like vtune/prof, native debuggers and so on) - this is where native debugging symbols come in.

A downside is that binaries will look bigger because they now also host debugging information - there are two options here:

  • be fine with it - users that care for their disk space usage can switch it off, but it's rare that this is a problem in 2025.
  • use split debugging info, ie put it in a separate file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant