Page 1 of 2

(done) Visual Studio 2017 Debugging

PostPosted: July 24th, 2018, 5:44 pm
by tthayer
Hi,

I have installed a fresh installation of VS 2017 on a Windows 7 box and the immediately installed PHP Tools. Tried the debugging right away on the basic Hello Framework test and debugging does not work at all. It says symbols not loaded. Tried all the settings I know, such as VS repair, disabling and re-enabling JIT, no luck. Also checked the port and I setup my PHP project to use port 9000. Still no luck.

Any suggestions would be greatly appreciated.

Cheers,

Tom

Re: Visual Studio 2017 Debugging

PostPosted: July 30th, 2018, 2:00 pm
by samwilcock
I have got exactly the same problem, have you had any luck fixing this yet ?

Re: Visual Studio 2017 Debugging

PostPosted: August 2nd, 2018, 2:16 am
by tthayer
No, nothing. Sorry.

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 8:24 am
by Miloslav Beno
Hi guys,

Have you checked the troubleshooting guide? https://docs.devsense.com/en/debugging/troubleshooting

Please let me know if you can see Xdebug in the phpinfo output.

Thank you,

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 8:31 am
by samwilcock
Hi Miloslav,

I have tried the troubleshoot guide and still cannot see xdebug in the phpinfo output.

Sam

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 8:43 am
by Miloslav Beno
Hi Sam,

I see, so Xdebug didn't load - It usually doesn't load because of a wrong dll.

Please send me phpinfo output, I will take a look.

You've installed php through our Automatic installation process, or you've installed another distribution?

Thanks!

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 8:52 am
by samwilcock
Hi Miloslav,

I have installed PHP through your Automatic Installation process and when I created my project for the first time I was promted by phptools for it to instll xdebug, but that doesn't seem to have worked.

I have attached my php info output.

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 9:38 am
by Miloslav Beno
Hi,

Thank you!

I've found out what the problem is. Microsoft has recently updated Web Platform installer. The new version has a bug which downloads PHP x64 distribution instead of PHP x86. This way it just cannot work. You can workaround this by copying xdebug x64 to ext folder and rename it to "php_xdebug.dll".

For PHP 7.1 x64 download http://xdebug.org/files/php_xdebug-2.6.1-7.1-vc14-nts-x86_64.dll

I'm going to contact Microsoft immediately.

Thanks again for bringing this to our attention.

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 12:06 pm
by samwilcock
Hi Miloslav,

This worked thanks !.

Re: Visual Studio 2017 Debugging

PostPosted: August 6th, 2018, 12:52 pm
by Miloslav Beno
I'm glad. I've contacted a guy from WebPI Team, hopefully they will fix the cause of the bug asap.

Btw. you can visually see the bug when you open Web Platform Installer GUI.

webpi-bug.png