[resolved] CakePHP Debugging |
Veteran
|
Hi tdodev, thanks for posting again. I'll do my best to help. Can you do us a big favor and just post the tree of your files here (e.g. screenshot) as well as your project properties? One sneaky trick, btw, that works for me all the time ( and I am not saying that is the best or even right way of doing it, but still): put the call to DebugBreak() instead of the breakpoint in your file outside of the workspace. No,no, once again - I am not saying this is the solution, it is just what I do when I get too lazy. You know there is a story about a boy who got a hummer as a gift - and everything became a nail after that
Thanks. |
||||||||||||
|
|
Hi yfaktor,
Thanks for your time to reply and offer of help. My apologies for my delay on this response. There are two configurations that appear, to me, to be mutually exclusive - one allows me to see and access the various project files but won't run in a web environment, the other allows me to run in a web environment but doesn't allow me to set breakpoints in the files. Argh.... I'm sure I'm missing something fundamental but I've read, and re-read these forums, help, and the latest cake tutorial with no luck. Here is the screen shot you'd requested: Cake files are organized in parallel directories. The apache docroot is in webroot, while the mvc (model, view, controller) files are all in parallel directories to webroot. So setting the root directory in the project properties allows me to run the application, but no debugging, and when I set it to the parent directory, I can see the files, but it won't run. Does that make sense? Thanks again for your offer of help! tdodev |
||||||||||||
|
Site Admin
|
indeed, there are two possible ways to organize your project.
1st one is what you submitted with the screenshot. In this case all your model and other files aren't in the project. If you need them to be parsed and shown in the code completion, just add the directories into "Code Insight Includes" list. 2nd one is below: -make the project root one level upper (c:\apache\htdocs\cake\transparent) -make the root URL empty (b'ze no URLs correspond to the project root directory) -update remote root to be the same as project's root directory -add an additional mapping entry on the Mappings page: =root directory c:\apache\htdocs\cake\transparent\webroot =URL http://localhost/ =remote root c:\apache\htdocs\cake\transparent\webroot whenever you work with local Apache, please keep REMOTE ROOT == PROJECT ROOT DIRECTORY, otherwise breakpoint may not work. |
||||||||||||
_________________ The PHP IDE team |
|
Dmitri,
This would be an extremely valuable addition to your Cake how-to. It would have saved me (and possibly others) a tremendous amount of frustration. Mostly arising from using your tools on earlier projects and not being able to use them on cake projects. But what I really want to know is, how did you go back to 2003 to answer this question? I don't think Cake was very well baked back then. tdodev |
||||||||||||
|
|
http://forum.nusphere.com/howto-setup-project-with-scripts-located-out-of-web-tree-t646.html
This link in Mini-FAQ is very useful if u want setup custom project |
||||||||||||
|
Site Admin
|
The answer is very simple, it's forum was created in this year and I joined it. Whan the post was created is shown there: Posted: 14 Apr 2008 11:42 pm Post subject: [resolved] CakePHP Debugging |
||||||||||||||
_________________ The PHP IDE team |
[resolved] CakePHP Debugging |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by