| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Debug in X-cart 5 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I have a question about x-cart 5.3 debug (actually in trial mode and then will be business version). I just looked here: http://devs.x-cart.com/en/misc/debugging_x-cart.html. The guide say to debug the code under /var/run/ and when the fix works out, then transfer it to the <X-Cart>/classes/ folder as a module or a temporary fix to the core files. I just tried to create a simple module under /var/run/ and it works, but when I move it under Xlite/classes and I re-deploy the store, the operation don't copy it under var/run/classes. It's not clear what files copy to var/run the "Redeploy the store" operation. Only the skyns folder? Last question: Is there a better way to debug the template skyn code under /var/run ? Actually I have to search in all generated files my template, because all skyns components are compiled all together with files names like hashes. Thanks Have a nice day Emidev
__________________
X-cart 4.7.7 Gold Plus |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You should not copy files from the var/run/classes/ directory to classes/ - they just won't work as the class inheritance tree is different there. What the documentation say is that once you created a module and re-deployed the site (so its classes have been compiled into var/run/classes/), you can tweak the compiled files in the var/run/classes/ directory, debug the site without re-deploying it and, when you have a working code, transfer the changes (not changed files!) back to the classes/ directory.
Moreover, in the new 5.3.x version the process is now smoother: when you enable the developer mode XC5 will track changes in the classes/ directory and will re-compile changed files automatically. So, now you don't have to hassle with transferring changes between var/run/classes <-> classes/ directories. The same happens with template files when you are in the developer mode - you can tweak templates in the skins/ directory and XC5 will compile them into the var/ directory automatically. Please check this article: http://devs.x-cart.com/en/what_is_new/what_is_new_in_5_3.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Thanks Alex!
I will try. Have a nice day
__________________
X-cart 4.7.7 Gold Plus |
|||||||
|
|||
X-Cart forums © 2001-2020
|