Debug cli commands in eclipse

Greetings,

I have setup my local eclipse IDE to connect to a remote pimcore server with xdebug. I am able to xdebug using a PHP Web App profile in Ecllpse.

But how do I xdebug a bin/console cli command? Can I initiate a cli command from the eclipse browser? Any help is much appreciated.

Thanks,
–bill

Update: I ended up creating a controller to call my cli functions from the browser.