Execute shell command when listening for debug connections

Hello

Is it possible to execute a shell command when toggling the "Start listening for PHP Debug connections" button?

I running an application that remains loaded in memory after first execution but this makes debugging frustrating because I have to terminate the application first, turn on debugging, start the application and only then I am able to debug. This manual back and forth becomes tiresome after a while and I'm hoping there is a built-in mechanism that can be configured to do this automatically or if its possible to listen for a toggle event, I can create a plugin to trigger the commands on that event?

Thank you,

 

0

You can configure an external tool that would kill your app, and then record a macro that would first execute the app and then toggle listening for incoming connection.

0

请先登录再写评论。