Hi,

a friend who uses Python mentioned that how he debugs is via `embed()`, 
which launches an IPython console at the point it is called with all the 
variables that exist at that point being defined, so you can inspect a 
bunch without sprinkling prints everywhere.

```{python}
from IPython import embed

a = 30
b = 20
embed() # At this point an IPython console will pop up and one can check 
the values of `a` and `b`, then type `exit()` to continue
c = 10
d = 0
embed() 
```

I was wondering if Racket has something similar? Sometimes it's not that 
useful since I have to figure out the point where things break, but at 
other times, it might be quite useful.

Additionally, I came across this tread on racket-users from 2015: 

https://groups.google.com/forum/#!searchin/racket-users/inspect$20variable%7Csort:date/racket-users/Jzg7cYCH-GY/nciHFLZkBAAJ

Are there any more up-to-date resources on how to debug in Racket? Thanks 
to vim-slime my debugging is already faster (all you emacs people are 
probably way ahead thanks to Greg's racket-mode), but it's still incredibly 
clunky and slow. (Of course if I used tests and contracts more liberally, 
things might be different... but hey, debugging can't be avoided, tests and 
contracts can.)

Cheers,
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/cd2b9453-e26d-4b80-bbd8-e3a0ec43f06d%40googlegroups.com.

Reply via email to