laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.33k stars 130 forks source link

How to cancel current running operation #54

Closed sehgal10 closed 5 years ago

sehgal10 commented 6 years ago

Sometimes the piece of code I run takes a lot of time to complete its execution. I usually find my bug in mid way, but I have to wait till the whole command executed successfully.

Unfortunately termination commands like Ctrl + C exits the whole tinker completely. How can I only stop the current running command only and not the complete tinker session.

Thanks in Advance, Sukhwinder

GrahamCampbell commented 5 years ago

Ping @bobthecow - you might know this. :)

driesvints commented 5 years ago

There's an open issue for this on the Psysh repo: https://github.com/bobthecow/psysh/issues/154