Can't debug PHP projects

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Can't debug PHP projects

Postby pf1gura » November 9th, 2017, 7:48 pm

I am not able to debug or run PHP apps with built-in server. Fresh install of VS2017 and PHP Tools. It configured IIS Express and PHP on first run. I am able to run APS.NET apps with built-in server.

Error I am getting while running web apps:
Code: Select all
This page isn’t working

localhost is currently unable to handle this request.
HTTP ERROR 500


Also when I try to run console apps it crashes.

Screenshots attached.
You do not have the required permissions to view the files attached to this post.
pf1gura
 
Posts: 3
Joined: November 9th, 2017, 7:07 pm

Re: Can't debug PHP projects

Postby Miloslav Beno » November 10th, 2017, 2:22 pm

Hello,

That's quite strange, PHP just crashed for some reason. Could you try to use another PHP version to see if there's some issue with that particular instance?

My tests with PHP 7.1 couldn't replicate this.

Thanks
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Can't debug PHP projects

Postby pf1gura » November 11th, 2017, 1:35 am

Thanks for reply. Sat on this one whole day today. I installed few different versions of PHP through Microsoft Web Platform Installer, as well as I manually installed and configured few versions from php.net and it still acted the same way. I tried it on my virtual machine with newest Windows Insider Preview and everything worked fine. So decided to format my laptop and do a clean installation of Windows (Fall Creators Update). First thing I did after was installing newest VS2017 and unfortunately I still got the error. What version of Windows are you on?
pf1gura
 
Posts: 3
Joined: November 9th, 2017, 7:07 pm

Re: Can't debug PHP projects

Postby pf1gura » November 11th, 2017, 9:25 pm

I've played with it today and it turns out the problem is storing my project files in OneDrive. If I create project anywhere else everything works just fine. I know Visual Studio has problems with OneDrive Files on Demand but I have those turned off. They fixed something in VS17 version 15.5 but it's not out yet. Will let you know if it changes something when it's out eventually.
pf1gura
 
Posts: 3
Joined: November 9th, 2017, 7:07 pm

Re: Can't debug PHP projects

Postby Miloslav Beno » November 13th, 2017, 2:02 pm

Hmm, VS shouldn't have much of a inpact on php.exe, it's separate process. So it seems it's general problem with onedrive. I'm glad you've figured that one out!

Thank you and let us know if you find something else.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Can't debug PHP projects

Postby sawebdev » November 25th, 2017, 5:34 am

Ya, there seems to be a few people having this issue. Though they say it should be fixed in 15.5, however I installed the 15.5 preview and it still won't run any php solutions that are in OneDrive. I disabled the files-on-demand and it didn't help...
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 39 guests

User Control Panel

Login

Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 39 guests