sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Interception.listen
Listen for any exceptions raised. The listener block that you pass in will be executed as though inside Kernel#raise, so your entire program is still actively running. If you have a gem like pry-stack_explorer you can access the stack frames that lead to the exception occurring. NOTE: Be careful when writing a listener, if your listener raises an exception it will mask the original exception (though it will not recursively call your listener).
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/interception/lib/interception.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Interception-listen-for-pr
# Commit to gitgit add app/server/ruby/vendor/interception/lib/interception.rbgit commit -m "better docs for Interception.listen"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Interception-listen-for-pr
hub pull-request
# Celebrate!