README.md in pry-moves-0.1.9 vs README.md in pry-moves-0.1.10
- old
+ new
@@ -69,9 +69,19 @@
/(\/gems\/|\/rubygems\/|\/bin\/|\/lib\/ruby\/|\/pry-moves\/)/
```
## Threads, helpers
+To allow traveling to parent thread, use:
+
+```ruby
+pre_callers = binding.callers
+Thread.new do
+ Thread.current[:pre_callers] = pre_callers
+ #...
+end
+```
+
`pry-moves` can't stop other threads on `binding.pry`, so they will continue to run.
This makes `pry-moves` not always suitable for debugging of multi-thread projects.
Though you can pause other threads with helper which will suspend execution on current line,
until ongoing debug session will be finished with `continue`: