Debugging with IIS Express and Visual Studio Ultimate 2012

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

Debugging with IIS Express and Visual Studio Ultimate 2012

Postby havardhu » March 18th, 2013, 9:58 pm

Hello

I am currently using a trial version of the professional edition of PHP Tools for Visual Studio, and I am trying to set up debugging support with xdebug.

Everything *seems* to be in order, my phpinfo says that xdebug is installed and the xdebug setup wizard says the same thing.

However, even though I set up break points in code, it never breaks.

A full version of my php.ini file can be found here:
http://pastebin.com/eb7EA6M6

My OS is Windows 8 Pro 64-bit, IIS is not installed. Using Visual Studio Ultimate 2012

Code: Select all
[XDEBUG]
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000


[PHP_XDEBUG-2.2.1-5.3-VC9-NTS]
[PHP_XDEBUG-2.2.1-5.3-VC9-NTS]
zend_extension="C:\P(...)es (x86)\PHP\v5.3\ext\php_xdebug-2.2.1-5.3-vc9-nts.dll"


The url I am trying to debug looks like this:

Code: Select all
http://localhost:16472/index.php?XDEBUG_SESSION_START=1
havardhu
 
Posts: 3
Joined: March 18th, 2013, 9:54 pm

Re: Debugging with IIS Express and Visual Studio Ultimate 20

Postby Miloslav Beno » March 19th, 2013, 12:24 pm

Hello,

Thanks for contacting us.

Configuration seems to be ok.

Can I ask what version of PHP Tools do you use?

When you press F5, does iisexpress and browser starts? If you just directly access the url do you see an output? (Press Ctrl+F5 so just browser will open without debugger)

Please check Output window if you see something like this:

Auto-attach to process '[5552] iisexpress.exe' on machine 'WIN-ECLA2IPA9SN' succeeded.
Auto-attach to process '[1232] php-cgi.exe' on machine 'WIN-ECLA2IPA9SN' succeeded.

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

Re: Debugging with IIS Express and Visual Studio Ultimate 20

Postby Miloslav Beno » March 19th, 2013, 11:32 pm

Hi again,

It occured to me one more thing. As Win8 user folder has user's name which can contain Unicode characters it might cause the issue you've been talking about.

Please make sure the path of your project doesn't have unicode in it. If it does please move your project to path without unicode characters. We'll handle this situation in the following update so the paths can contain unicode characters.

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

Re: Debugging with IIS Express and Visual Studio Ultimate 20

Postby havardhu » March 25th, 2013, 11:54 am

Miloslav Beno wrote:Hi again,

It occured to me one more thing. As Win8 user folder has user's name which can contain Unicode characters it might cause the issue you've been talking about.

Please make sure the path of your project doesn't have unicode in it. If it does please move your project to path without unicode characters. We'll handle this situation in the following update so the paths can contain unicode characters.

Thanks again!
Miloslav


Thank you! This worked.
havardhu
 
Posts: 3
Joined: March 18th, 2013, 9:54 pm

Re: Debugging with IIS Express and Visual Studio Ultimate 20

Postby Miloslav Beno » March 25th, 2013, 12:17 pm

Great! I'm glad it works for you.

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


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 60 guests

cron

User Control Panel

Login

Who is online

In total there are 60 users online :: 0 registered, 0 hidden and 60 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 60 guests