VS2010 setup WAMP and debugging
6 posts
• Page 1 of 1
VS2010 setup WAMP and debugging
Hi I'm new to PHP tools and PHP programming in general but I can't seem to figure this one out, on my computer I run WAMP and Visual Studio 2010 Ultimate.
my php.ini looks like this:
in visual studio under "Tools > Options > PHP Tools > Advanced"
the XDebug Debugger Port is set to: 9001
When I left click the wamp icon in system tray I go to: "PHP > PHP Settings" and then "(XDebug): Remote Debug" is check marked (there use to be 2 more options)
(in Visual Studio)
When I right click on "Website Properties" (note NOT solution properties) I go to "Property Pages" then under "Start Options" by "Start Action" I select "Specific page:" I enter: "index.php" then under "Server" I select "Use Custom Server" I enter: "http://localhost/emptywebsite1/" after all that I click "Apply" then "OK".
Then if I enter code in the index.php file, as:
and click on the Play button (Start Debugging (F5)) my default browser pops up with the result of the code, but when I put a break point on the "echo phpinfo();" line and click on Play nothing happens, and Visual Studio also doesn't have the "Stop" debugging icon.
How should I configure Visual Studio to show the debugging as if I'm coding in C#?
And when I choose "Use default Web Browser" under property pages the same thing happens.
my php.ini looks like this:
- Code: Select all
; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.0-5.4-vc9.dll"
[xdebug]
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9001
xdebug.remote_mode = req
xdebug.idekey="php-vs"
in visual studio under "Tools > Options > PHP Tools > Advanced"
the XDebug Debugger Port is set to: 9001
When I left click the wamp icon in system tray I go to: "PHP > PHP Settings" and then "(XDebug): Remote Debug" is check marked (there use to be 2 more options)
(in Visual Studio)
When I right click on "Website Properties" (note NOT solution properties) I go to "Property Pages" then under "Start Options" by "Start Action" I select "Specific page:" I enter: "index.php" then under "Server" I select "Use Custom Server" I enter: "http://localhost/emptywebsite1/" after all that I click "Apply" then "OK".
Then if I enter code in the index.php file, as:
- Code: Select all
<?php
echo phpinfo();
?>
and click on the Play button (Start Debugging (F5)) my default browser pops up with the result of the code, but when I put a break point on the "echo phpinfo();" line and click on Play nothing happens, and Visual Studio also doesn't have the "Stop" debugging icon.
How should I configure Visual Studio to show the debugging as if I'm coding in C#?
And when I choose "Use default Web Browser" under property pages the same thing happens.
South Africa +2 GMT
Johannesburg
Johannesburg
-
Lloyd - Posts: 3
- Joined: October 3rd, 2013, 9:34 pm
- Location: South Africa
Re: VS2010 setup WAMP and debugging
Hi Lloyd,
It seems you are trying to debug Visual Studio Web Site which does not support PHP Debugging. In order to debug in PHP you need to create PHP Web Project.
You can convert your web site to PHP project from VS Menu: File>New>Project From existing Code…
Give me know if that helped.
Thanks,
It seems you are trying to debug Visual Studio Web Site which does not support PHP Debugging. In order to debug in PHP you need to create PHP Web Project.
You can convert your web site to PHP project from VS Menu: File>New>Project From existing Code…
Give me know if that helped.
Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: VS2010 setup WAMP and debugging
Hi Miloslav,
I see after I made a new Web Project (VS "File > New > Project") the debugging works, I think I missed the difference between a "Web Site" and a "Web Project"
I'm glad it works
And thank you for the fast reply.
All the best,
Lloyd
I see after I made a new Web Project (VS "File > New > Project") the debugging works, I think I missed the difference between a "Web Site" and a "Web Project"
I'm glad it works
And thank you for the fast reply.
All the best,
Lloyd
South Africa +2 GMT
Johannesburg
Johannesburg
-
Lloyd - Posts: 3
- Joined: October 3rd, 2013, 9:34 pm
- Location: South Africa
Re: VS2010 setup WAMP and debugging
Hi Lloyd,
Glad you have it working.
I guess this difference is confusing for lot of people. We're most likely going to remove the support for PHP Web Sites in future version. They are already not supported by us in VS2012 nor 2013 anyway.
Thanks!
Glad you have it working.
I guess this difference is confusing for lot of people. We're most likely going to remove the support for PHP Web Sites in future version. They are already not supported by us in VS2012 nor 2013 anyway.
Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: VS2010 setup WAMP and debugging
What can I do, When I get this, "Aestan Tray Menu
Aestan Tray Menu has encountered a problem and needs to close."
Aestan Tray Menu has encountered a problem and needs to close."
- Tobraq44
- Posts: 1
- Joined: October 19th, 2013, 6:26 am
Re: VS2010 setup WAMP and debugging
Hi,
that's more of the question for wamp server forum. I've found similar problem right here http://forum.wampserver.com/read.php?2,78924,78988
that's more of the question for wamp server forum. I've found similar problem right here http://forum.wampserver.com/read.php?2,78924,78988
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 68 guests