Please teach me how can I set up PHPStorm for my project structure
I use Win7x64 and SVN 1.6 (if it is important). I have following project structure:
[project root]
| - ... some folders
| - <symlink #1 to magento folder>
| - <symlink #2 to magento folder>
| - [magento folder]
| - ... some folders
| - [.htaccess]
| - [index.php]
| - ... some files
| - ... some other folders
| - ... some files
At first, why do we need such structure - in magento/.htaccess file depending on current folder (symlink) different emvironment variables are set for magento/index.php.
I excluded symlink #1 and symlink #2 in FIle -> Settings -> Directories to avoid problems with multiple class declaration and so on. I have 2 problems:
1. When I invoke svn update in phpstorm it thinks for some reason that file was updated in symlink #1 (or symlink #2 folder, not sure which one, maybe it even picks random folder), not in the magento folder. Because symlink #1 and symlink #2 folders are excluded from project - I can't see diff or go to file from Version Control tool window.
2. I don't know how to set up folder mappings for debug (with XDebug, if it is important). symlink #1 and symlink #2 are excluded from project. When I debug some url which invokes file from symlink #1 or symlink #2 folder - phpstorm doesn't start debug session. How can I map symlink #1 and symlink #2 (excluded from project) to my magento folder?
symlink
请先登录再写评论。
Hey jetbrains devs, please help.
Hello Dmitry,
Sorry for delay. Let me to help you with debugging.
Please provide xdebug log - http://xdebug.org/docs/remote#remote_log.
Thank you for feedback!
Don't understand, what you wish to see in xdebug log?
Hello Dmitriy,
Usually I asked about xdebug log if I need to know actual paths of script which were stepped into in your debug process.
Xdebug(and Zend Debugger as well) only works with real paths. So the real path of the any script inside the symlink#1 or symlink#2 should be located inside the project.
So please provide xdebug log.
Thank you for feedback!
Dmitriy,
Do you still have the issue?
Thank you for feedback!