Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Debug in X-cart 5

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-01-2017, 08:43 AM
 
Emidev Emidev is offline
 

Newbie
  
Join Date: Feb 2017
Posts: 3
 

Default Debug in X-cart 5

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
Reply With Quote
  #2  
Old 03-02-2017, 09:41 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Debug in X-cart 5

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
Reply With Quote

The following user thanks qualiteam for this useful post:
Emidev (03-03-2017)
  #3  
Old 03-03-2017, 12:24 AM
 
Emidev Emidev is offline
 

Newbie
  
Join Date: Feb 2017
Posts: 3
 

Default Re: Debug in X-cart 5

Thanks Alex!
I will try.

Have a nice day
__________________
X-cart 4.7.7 Gold Plus
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:46 AM.

   

 
X-Cart forums © 2001-2020