Is there a way to send a signal (e.g. ^C, SIGTERM) to the process being run from the IDE?
I am running a Python script from within PyCharm (via IntelliJ IDEA). It is a daemon, and I'd like to send it one of the following signals to allow it to gracefully shutdown and complete. Is there a way to send a signal to the process being run or debugged within the IDE?
Using the Stop button appears to kill the process cold without a chance to release resources.
Using the Stop button appears to kill the process cold without a chance to release resources.
signals = [ signal.SIGINT, signal.SIGHUP, signal.SIGTERM, signal.SIGUSR1, signal.SIGUSR2, ]
Please sign in to leave a comment.
Somewhat related question, but the "Run with Coverage" option only seems to work when the script comes to a natural completion. I'd like to use it with a web server that runs indefinitely. When I hit the Stop button (intending to generate a coverage report), it just kills the server and doesn't produce the report.
As you mentioned coverage and web server you might be interested in this Stackoverflow question - http://stackoverflow.com/questions/19025336/
I would like to see the ability to send signals to a running script—I'll log a YouTrack issue suggesting that feature.