Visual Studios: How config so debugger will start when the php script is called by an executable?

Using Visual Studios 2013 with PHP Tools: trying to debug a php project where a php script is called by an executable.  Both the executable and the php project are on my PC.  How do I configure so that the debugger will start when the php script is called by the executable?
SAbboushiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
Is it calling PHP.EXE or via libraries?
0
SAbboushiAuthor Commented:
Aha!  That got me thinking:  by default, VS PHP Tools uses php built-in webserver.  Yet the executable... well, I'm not quite sure how that works... I suspect it would use whatever the default web server is on W7 to initiate an http session (I think that's the correct terminology?), which would be Apache.  

I have multiple Apache installs/configs, so I can choose either a config that uses Apache PHP module (is that what you meant by "via libraries"?) or using FastCGI (php-cgi.exe).

Any thoughts on how to proceed?
0
David Johnson, CD, MVPOwnerCommented:
no it will use iis express by default. add both to your solution
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

SAbboushiAuthor Commented:
Thanks David; I suspect it will use iis express by default if I weren't using PHP Tools.
0
gheistCommented:
Normally one loads some php debug module into php that is loaded either way in any supported webserver. I just asked because if you call php.exe or load libphp in some VS application things get more complicated.

Try to get phpinfo() from your PHP - it must show some VS debug module loaded.
0
SAbboushiAuthor Commented:
VS PHP Tools uses xdebug; however, it doesn't require anything other than the php built-in webserver (i.e. I can stop my Apache service and still debug my script).  Of course, if I need a web server for non-debug related operations (e.g. receiving an http request from another application), then that is where Apache comes into play.

I've figured out how to config the php project in VS:

Set the Start Action to: Don't Open a Page: Wait for a request from an external application.

Use Custom Web Server -> Server URL: http://localhost/<folder that contains the called php script>

Thanks everyone for your help--
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SAbboushiAuthor Commented:
Found solution myself
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.