servo / servo/string-cache

Is there a way to print these in rust-lldb?

Open
#240 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
212
Forks
84
Avg merge
1d 2h
Merged PRs (30d)
6

Description

I am using CLion with the Rust plugin.

Trying to debug a variable in the swc-project/swc project.

$ p src

(string_cache::atom::Atom<swc_atoms::JsWordStaticSet>) src = {
  unsafe_data = 140464742296960 {
    0 = 140464742296960
  }
  phantom = {}
}

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

Start by reproducing the Atom<swc_atoms::JsWordStaticSet> display shown when debugging the swc-project/swc variable src in rust-lldb through CLion's Rust plugin. Check whether rust-lldb or the string-cache project provides an existing way to inspect the value; done should be a confirmed, documented way to print or inspect this type.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.