I'm trying to debug my cakephp application with php tools for Visual studio (2013).
I'm not able to do it, it doesn't respect the routing when I try to debug.
Someone know how to do it?
To debug a cakephp app using MS Visual Studio 2013, I did these steps and it's working fine for me :
So you will get something like this :
For the debug, we will use IIS Express, so if you don't have it installed yet, you can install it from the same window via the MS Web Platform Installer :
So you will get something like this :
web.config
in the root of your project : web.config content :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Exclude direct access to webroot/*"
stopProcessing="true">
<match url="^webroot/(.*)$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="Rewrite routed access to assets(img, css, files, js, favicon)"
stopProcessing="true">
<match url="^(img|css|files|js|favicon.ico)(.*)$" />
<action type="Rewrite" url="webroot/{R:1}{R:2}"
appendQueryString="false" />
</rule>
<rule name="Rewrite requested file/folder to index.php"
stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<action type="Rewrite" url="index.php"
appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Then
That's all !
Hope that can help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With