Magento development environment on windows with debug capability - windows

I have seen hundreds of post on how to setup an Magento development environment for Windows. But nowhere i could find a good tutorial on this works with proper debugging enabled. I have tried many IDE's and debugging frameworks (Zend, Xdebug) but i can't find a way to actually get this to work.
It would be great if i could set a break-point in an .phtml file so i can see what is going on and check all variables/objects.
Any (experienced) Magento developers who can explain on how to setup a proper development environment for Magento on a windows machine.
Hope to get some feedback....

Here is a simple step-by-step
Download the latest version of Z:WAMP
Extract Z:WAMP wherever you like.
Download the XDebug DLL
Copy the XDebug DLL to {zwamp directory}/vdrive/.sys/php/ext/
Add the following text to the bottom of the {zwamp directory}/vdrive/.sys/php/php.ini file
[xdebug]
zend_extension="/.sys/php/ext/php_xdebug-2.1.0RC1-5.3-vc9.dll"
xdebug.remote_enabled=1
xdebug.remote_connect_back=1
Run {zwamp directory}/zwamp.exe and accept the security messages for Apache and Mysql.
Delete everything under {zwamp directory}/vdrive/web/
Copy your magento project into the {zwamp directory}/vdrive/web/ directory
Download the latest version of NetBeans PHP and install it.
Start netbeans and click File > New Project
Click the PHP Category, Select the PHP Application with Existing Sources option
Click Next
Click Browse on the Sources Folder option
Select the {zwamp directory}/vdrive/web directory
For PHP Version, Select version 5.3
Click Next
For Project URL enter "http://127.0.0.1/" (Magento had/has a problem with names that do not have a TLD)
Click Finish
Wait for the Scanning Projects.. to finish (bottom right status bar, it takes a while)
Open a code file, add a breakpoint, and run in debug mode (Ctrl-F5).
Profit!
To turn off the 'break on start' option
Select Tools > Options
Select PHP
Select the General tab
Under Debugging, un-check the Stop at first line option
Click Ok

Related

VS2015 Multiple startup projects - prevent page showing

I have recently had to reinstall my development machine so I'm unsure how I did this before.
A solution which I have currently has 3 projects that are needed for startup for debugging, this works fine, when I run the solution I get 3 pages open up in the browser which makes logical sense, however on my previous installation of my machine I only had one page open up, the API and MVC projects didn't show in the browser, but they were running so the entire application worked.
Is there a way to suppress the unneeded pages from opening up in the browser?
I found the option after a while, it was in the project properties, not the solution properties!
Here are the details if anyone is interested:
Right-click on the Project
Choose Properties
Go to the Web tab
In the Start Action section select the 'Don't open a page.
Wait for a request from an external application.' option.

Suddenly lost the System menu option from Magento Admin Panel

I am using Magento CE 1.9.1.
Everything was working well a while ago and all of a sudden, the "Systems" menu from the admin panel navigation menu disappeared.
I cleared the "var" folder manually but still the problem is the same.
When I googled around, I do not see any one getting this weird error and am sure there is something wrong am doing which am not able to figure out.
Will appreciate if someone can assist on this.
You need to go to your root magento:
app/etc/modules
Here you have to enable the disabled modules again ->
Open the specific xml-module-file, in your favorite notepad editor e.g:
{namespace}_{module}.xml
-> Find the line false
Change false > true and SAVE and upload file back to server.
Repeat this on all the disabled files and empty cache and try login/logout.
Let me know how is works.
To Resolve this issue, you will have to do debugging as follow:
Step 1: Disable all module in local and community folder
First, disable the whole module in local and community folder.
For disabling local modules, please follow this tutorial link
http://magebase.com/magento-tutorials/quick-tip-disable-all-local-modules-at-once/
For disabling community modules, please follow below tutorial link
http://blog.onlinebizsoft.com/magento-quickly-disable-all-community-extensions/
After that check your admin section. if all things are working fine. then undo all changes above.
And now for disabling all module's of local and community folder.
Go to app/etc/modules
Disable the module
Step 3: When you will find which module has an issue, resolve the same.
Go to yourwebsite/magento/downloader/ ( Magento Connect )
Re-install all
Mage_Core_Adminhtml
Interface_Adminhtml_Default
Mage_All_Latest
Mage_Core_Modules
I dont know which one did it, but I reinstalled all of them and i worked!

How to build DNN 8 source files

I have just downloaded the source package for DNN 8. I created a folder for the site, copied the files there and found the solution named DNN_Platform.sln and opened it with VS 2015. Did a right click and build on the solution and it successfully completed. I navigated to the web site and it gave me the standard install screen to input info such as database name etc. It ran and I was able to go to the web site. It has a single blank page named home with nothing in the page. I can go to some of the admin pages and they are fine. But I got to File Manager and all that I see is the bread crumb telling me my page location. Same occurred trying to look at the Page management screen. When I look at the available modules there are only a few there and there is no module for either the file manager (Digital Assets) or page manager. It feels like I am missing a portion of the build. I Googled to find install instructions for DNN8 but so far can't find any. I found instructions for earlier source code installs but the DNN8 package is a lot different. Can someone tell me where I can find this information or shed some light on what I have done wrong? I also did a standard install for DNN8 and all the modules are there.
In the root of the source directory there are two solution files:
DNN_Core.sln
DNN_Platform.sln
Open both (two different Visual Studio instances). First build DNN_Platform.sln, then build DNN_Core.sln.
Once you've built both you will not see the module directories in Visual Studio unless you click on "Show all Files" in solution explorer. You will also find them using File Explorer.

Adding SVN to Spring Tool Suite, Subclipse extension not available

I have Spring Tool Suite (STS) 3.6.3 installed. On another PC at home I recall being able to add SVN integration into STS by bringing up the Dashboard window, and checking the "Subsclipse" check box on the Extensions tab. However, I don't see this option on my current installation. I am including installed extensions, too, and I do not see Subclipse in the list.
When I select the Project folder in the Project Explorer window, right mouse click → Team → Share Project, I see only CVS and Git as options, but I would like to use SVN.
My experience with all things Java is measured in hours rather than years, so don't assume anything :-)
How do I integrate SVN with STS?
Check once if it's installed properly:
Here is how to add the SVN plugin (Subclipse) to your Spring Tool Suite
Open the Spring Tool Suite and go to the dashboard.
Click on Extensions (It is under the Help and Documentation heading).
Search for Subclipse. Check the checkbox and click Install.
Note: If you do not see Subclipse it implies that it is already installed on your IDE, but you can verify by checking the ‘Show Installed’ beside the search field.
Source URL: http://www.jicdesign.com/blog/web-development/how-to-add-svn-plugin-for-spring-tool-suite.html
Open Spring Tool Suite.
Select menu Help → Install new software
Click on the Add button.
Set the Location field as http://subclipse.tigris.org/update_1.6.x/
Click OK
Select the required components.
Click on Install button.
Select the I accept the terms of the license agreements radio button
Click the Finish button
Click Yes to restart Spring Tool Suite
Subclipse is available in the Eclipse Marketplace and can be installed via the Marketplace Client. It is also available at the following update site URL's.
NOTE: These are update site URL's to be entered inside the Eclipse installation dialog, not your web browser.
Latest - https://dl.bintray.com/subclipse/releases/subclipse/latest/
4.2.x - https://dl.bintray.com/subclipse/releases/subclipse/4.2.x/
The "latest" site will automatically move on to 4.2.1, 4.3.0, 5.0.0 etc. as those releases are produced. Where as the "4.2.x" site will only pick up new releases in the 4.2.x series such as 4.2.1, 4.2.2 etc.
More info at: https://github.com/subclipse/subclipse/wiki
I needed to run with elevated or administrator rights.

How to download/attach source code in Intellij 12

I had created a new project in Intellij 12 version ,which is a maven module.I have selected autoscroll options from the IDE too.But when I hover to WebDriver using Ctrl Q it prompts me to download /attach source code.I tried downloading/attaching but no change shows and WebDriver.class opens up instead of WebDriver.java.
Also note that this is happening for my new projects only ,for old selenium version like 2.39.0 it shows fine,it prompts me to attach for only 2.41.0 selenium dependency.
Message that shows is "Source not found" in the IDE.Why is it only for 2.41.0 selenium version and not for 2.39.0?
In order to add sources choose:
1.File | Project Structure
2.Click Libraries tab
3.Pick library and click + icon
4.Find a JAR file containing sources.
But in your case,( using maven as a build tool), IntelliJ will automatically download and attach available source to all libraries, no manual work needed.
Update:
Feel free to do the following step to update the indexes so that idea know that we have done the above change.
File > Invalidate Caches/Restart -> click invalidate and restart

Resources