kokkos / kokkos/mdspan

Feature request: pretty printer for GDB/LLDB and Natvis (native visualizer) for msvc/cdb

Open
#243 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
507
Forks
87
Avg merge
15h 27m
Merged PRs (30d)
2

Description

It would be very convenient to debug the multi-dimentional spans with pretty printers, as at current time the mdspans are very hard to inspect in debugger.
See the https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing.html , https://learn.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2022 , https://code.visualstudio.com/docs/cpp/natvis

These scripts may be located at scripts/{natvis,pretty-printers} directories of repo

Thanks for your attention.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked GDB pretty-printing and Visual Studio Natvis documentation, then inspect the proposed scripts/natvis and scripts/pretty-printers directories. Define debugger views for multi-dimensional mdspans in both formats and verify that the spans are substantially easier to inspect in GDB/LLDB and MSVC/CDB.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.