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

add debug statement to expose type & constraints #871

Open
Samir-Rashid opened this issue Oct 31, 2024 · 1 comment
Open

add debug statement to expose type & constraints #871

Samir-Rashid opened this issue Oct 31, 2024 · 1 comment

Comments

@Samir-Rashid
Copy link
Contributor

Currently, it is hard to debug why Flux is failing. I will add a dbg! macro for Flux that will print out all the metadata Flux knows about a variable upon running cargo flux.

This task has two parts:

  1. Find a way to preserve the source code debug statement in the MIR
  2. Plumb the data out of Flux and print it
@nilehmann
Copy link
Member

A bit of trivia, mypy has reveal_type for something similar https://mypy.readthedocs.io/en/stable/common_issues.html#reveal-type

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

2 participants