Comments (3)
Yes. I am trying to preserve macro transformer values so I can use them at run-time in a Repl. My current solution works in situations where I run and compile at the same time in DrRacket, but I need a better solution that also works when the code is compiled.
from debug.
I’m not sure that it’s (currently) possible. Plus, as you mentioned in the commit message, it only works in simple cases where macros do not use other macros. This seems like something that might need support from the compiler or the expander? It would be useful to have a robust solution for this that works in 100% of cases; this sort of feature is extremely useful for debugging. Ruby’s pry
library provides a binding.pry
that does the same thing (opens a REPL at the location at runtime), and it provides one of the nicest debugging workflows I’ve ever used.
from debug.
I've split those tests into a separate file which I can add to compile-omit-paths
. When I do this it compiles and runs at the same time so the tests pass. This is not a solution, but it means the docs can build.
from debug.
Related Issues (16)
- Debugging all callers of a function? HOT 2
- print syntax objects natively in the DrRacket REPL HOT 6
- build error caused by package conflict HOT 3
- Use with typed/racket HOT 3
- making `debug` part of a #lang reader by default HOT 7
- Allow pretty-printing HOT 5
- Runtime option to disable debug HOT 3
- Add MIT License HOT 4
- `debug-repl` does not print results of interactions HOT 3
- Show arguments in name
- Nested debug forms are difficult to read HOT 2
- Make debug-repl variables immutable
- Add configure-runtime to extend the readtable for the repl as well
- `(debug-repl)` will fail if immutable top-level variable is shadowed by a local variable HOT 6
- `(debug-repl)` causes a use-before-defined error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debug.