1. Local Development Stack/Environment
If you're developing on Windows (like me) then I'd recommend that you use WAMP (http://www.wampserver.com/en/). In my view WAMP is a much better architected environment than any other Windows based development stack (e.g. XAMPP) as it's very logically implemented and doesn't have anything un-needed. It also has an icon in the Notification Area which lets you fully manage it. Further you can make enhancements, such as add the rewrite log into it as well for easy access.
2. Integrated Development Environment
Eclipse PDT with Aptana + Subclipse plug-ins and Zend Server Debugger. With this combination you have the most sophisticated OpenSource environment that has all the features such as intellisense, debugging, FTP uploads directly to the server and SVN integration.
Eclipse PDT - http://www.zend.com/en/community/pdt
Zend Server Debugger - http://downloads.zend.com/pdt/server-debugger/
Aptana Studio - http://www.aptana.org/studio
Subclipse - http://subclipse.tigris.org/
To give you a brief rundown of what each does:
Eclipse PDT - Provides PHP development support, code completion and so on for PHP within Eclipse. By downloading Eclipse PDT with Zend Debugger from Zend website you get the client-side debugger as well which you need to debug local files and from memory also to connect to the server debugger. I've tried using xdebug, but it had way more issues than Zend Debugger when used with PDT. You can do other nice stuff in Eclipse PDT, such as auto-comment code, auto-format code and so on. You can also jump to function definitions just by hitting F3 and so on.
Zend Server Debugger - This is a component you need to install onto your local dev server to enable you to debug the code out of Eclipse (i.e. Put breakpoints, step through code, see variable values and so on). there are a few good tutorials online on how to install this.
Aptana Studio Plug-in - This is an Eclipse PDT plug-in that adds excellent HTML and CSS formatting, jQuery support, FTP Syncrhonization functionality so you can deploy files to your website right out of PDT and so on.
Subclipse - Provides SVN integration functionality for Eclipse (although you could use Subversive) or install Subclipse as bundled with Aptana during Aptana setup.
This setup works extremely well and most certainly beats developing in Dreamweaver, Notepad++ or any other non-IDE environment.
Hope people find this useful and perhaps this can be stickied at the top of the Dev forum.
For those that use Linux (like me) I'd recommend using Kate, Firebug for Firefox, and of course a good FTP client such as gFTP. Usually, everything else, in particular the Apache server, PHP, MySQL, PHPMyAdmin etc. usually come pre-installed on most Linux distributions.
Also, for those that develop on a Windows desktop: Be aware that on a Unix or Linux server the file system (such as EXT3 or EXT4) is usually case sensitive for file and directory names, unlike Windows NTFS.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
And I personally think the easiest development stack on windows is zendserver ce.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
And, I gotta say I'm impressed. It is way more simple and intuitive than Eclipse PDT and does the same thing as Eclipse AND MORE. It even has a little colour picker for stylesheets like dreamweaver, an in-built database browser and sql code completion along with other goodies that aren't available in Eclipse.
I'm going to test it out further for real work with SVN where I need to do serious merging and so on, but so far it looks pretty sweet, would recommend you try it out. Also, unlike Eclipse it's only a 25MB download instead of 100MB+ and 75MB for Aptana Studio.
I've also seen some people use Notepad++ with DBG for php debugging as well. Haven't tried it myself.
CodeLobster is a free php debugger, but I never tried that either.
For my setup, I find Twamp to be a great solution. Completely portable so I can work from anywhere.
Sure, you could use some text editor like Notepad++, but then it's still just a text editor, without good code completion, debugging, color pickers, SVN integration and so on. Code completion, and debugging are a must these days i recon. Using a proper IDE increases productivity through the roof, especially for people who aren't all that familiar with all the libraries or the application.
I did just try codelobster.. its got some decent support staff and they seem to address issues here and there. Its similar to phped and has syntax highlighting, intellisense and "hover variable to see value" options as well. Its a bit lighter than phped, but in a good way. The debugging is a bit diff tho and I have to play with it more to understand it.
I've tried to setup Eclipse with php debugging a while back but couldn't get my head around it. If you have some basic procedures that may help, that would be great.
I would prefer a non-commercial method wherever it is possible.
Eclipse supports both ZendDebugger and XDebug, but when i tried XDebug it kept crashing apache on my windows dev machine, so I got a bit fed up with it and just started using ZendDebugger which I havn't had too many problems with. NetBeans only supports XDebug, but perhaps it won't have the same issues as Eclipse had with XDebug. I hanv't tried it yet.
I use Eclipse PDT with Aptana and Subclipse pretty much every day and havn't had any issues with it, but when I gave NetBeans a test run today I found it a bit more intuitive and easy to use, because many settings in Eclipse are a little more difficult to work out and some stuff is a little bit annoying. I was particularly impressed with NetBeans support of stylesheets where you can actually pick a colour visually or at least see the colour and see the colour when it's typed in hex. As I said before I still don't know about NetBean's support for SVN and FTP. I know you can upload individual files, which should suffice but SVN is a biggie for me as all the stuff I do is with SVN and I need to have good SVN support. If NetBeans SVN support is as good as Eclipse I'm pretty sure I'll be moving to NetBeans, although some people have said it has some memory leaks, but I certainly havn't come across that as yet, and you have a Memory toolbar in NetBeans so you can monitor memory usage anyway and force garbage collection.
Either way, using either Eclipse PDT or NetBeans beats doing it without a proper IDE.
The one thing that does annoy me with OpenCart though is that the way it's been designed doesn't allow code completion to work properly in an IDE because of the way the registry class is used throughout, but still it beats writing code in Dreamweaver.
Komodo Edit is free. Yes the full Komodo is $300, but edit is a very nice little ide and yes it does have code completion and debugging all for free.Sheldmandu wrote:Eclipse PDT is actually extremely intuitive and unlike Komodo doesn't cost $300. The important thing with Eclipse PDT is that it supports debugging, code completion...
I haven't used netbeans in ages, I may have to check it out again. I just don't like Eclipse because as someone mentioned it's a gigantic download then you have to have several plugins and it's not terribly intuitive.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
In Eclipse PDT + Aptana you can see directly in the project tree which files have markup issues and also which files are checked out and so on. In NetBeans whether the file has been modified is identified with a different colour in the tree and you can't see in the tree which files have markup issues (although I thought they were adding this). Further I had one file where the TR tags were being echoed while the TABLE and TD tags were just being output and for some reason NetBeans decided that the opening TABLE tag didn't have a closing tag, when it in fact did. On the other hand, Eclipse/Aptana worked out that the issue was with the missing TR tags and highlighted the TD tags instead (which was correct). The FTP functionality that comes as part of Aptana is also a bit more comprehensive than in NetBeans.
So, as expected some features are better implemented in Eclipse and some in NetBeans. I think overall, some of the features in Eclipse/Aptana that rely on heavily are implemented a bit better, but perhaps it's just I havn't discovered how to use them properly in NetBeans. Either way for now I'll stick with my trusted Eclipse PDT + Aptana + Subclipse and use NetBeans if I feel like it for some stuff (as I have both installed).
I just tried to download evaluation version of phped, installed it and maybe set up correctly with xampp, following some online procedures:
- dbg-php.dll file in xampp folder,
- modification of php.ini and verification in phpinfo
...
and now?!? Maybe my question is trivial... how do you use it? I tried creating a new project, specifying one of my local opencart installation folder and I can see all the folders and files tree in the left window, being able to browse and visualize files in the editor properly.
What can I do now? How can I do, some debugging sessions, i.e. with "step into" debug? Am I on the right route?
thanks in advance for your cooperation,
M
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
I am using it, too. Along with Kate - Advanced Text Editor, and Firebug. Never liked Eclipse nor Netbeans or similarmaslow788 wrote:I use KDiff3 to merge the difference between 1.4.0 and 1.4.4. Took me 20 minutes to complete the merge. When I started out programming, I do merging manually. Not anymore with KDiff3.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I'm struggling try to understand how to use Eclipse to debug Opencart... but I'm wasting days and nights without results...
I already set up Eclipse + xdebug on a wamp server. I'm almost sure it is all correct, and I can "debug" index.php of an Opencart installation... but then?!?
When I end to debug/run index.php and my homepage appears in the browser, how can I continue to debug things?
What I'm trying to do, examples, is:
1) I set a breakpoint in catalog/controller/account/create.php
2) From browser home page, resulting of debug launch on eclipse I click on Log In, register...
I expected to have a break... but actually it doesn't happen, new create page is loaded without any break/debug.
I'm sorry for the question, maybe it's obvious for you... but I can't sort it out, I'm sure there is something stupid I'm missing...
Please let help me.............
thanks in advance,
M
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
My perception is the environment is
correctly set up. If I try to debug a single simple page, I'm able to do it.
I think I'm missing some trivial basics of web debugging, because I'm a newbie of it. My problem is in debugging complex web sites.
Summarizing again:
I start debugging on index.php and I can go step by step, watching variables but it seems breakpoints don't work.
I suspect there is something related to server folders mapping but up to now I didn't solve the issue!
Thank you for your patience,
M
Sent from my Desire HD using Tapatalk
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
bye bye eclipse!
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Users browsing this forum: No registered users and 128 guests