summary refs log tree commit diff stats
path: root/tests/stdlib/tmacros.nim
diff options
context:
space:
mode:
authorSaem Ghani <saemghani+github@gmail.com>2020-12-30 06:02:51 -0800
committerGitHub <noreply@github.com>2020-12-30 15:02:51 +0100
commit84a7544988ffd8d26ff50c8a9417acbededf03fb (patch)
tree4c22a63a360d1421a9d91ba54ffda51c89979a25 /tests/stdlib/tmacros.nim
parent8508c4e1c262567ecc093de8b645cec677ce5afd (diff)
downloadNim-84a7544988ffd8d26ff50c8a9417acbededf03fb.tar.gz
nim-gdb.py fixes mostly for nimsuggest debugging (#16479)
These fixes were primarily developed to assist in nimsuggest debugging. There
is nothing intentionally specific done for nimsuggest, but beyond the automated
tests all practical testing was done with nimsuggest. Undoubltedly these will
also assist in other debugging scenarios.

The current nim-dbg.py script was broken in a few ways:
- failed to provide detailed value information for common types (see below)
- was not passing existing tests
- could not produce type summary information

Broken types now working somewhat better:
- sequences with ref types like strings
- sequences with value types like ints
- arrays with ref types like strings
- tables with int or string keys

Other improvements:
- slightly more test coverage

Future considerations:
- this, data used by it, should be something the compiler can generates
- account for different memory layouts ([arc/orc differ](https://github.com/nim-lang/Nim/pull/16479#issuecomment-751469536))

Attempts at improving nim-gdb.py

More tests, few fixes for seq and type printing

Tables debugging fixed added further tests

Fixed type printing
Diffstat (limited to 'tests/stdlib/tmacros.nim')
0 files changed, 0 insertions, 0 deletions