hey
im trying to debug drupal with xdebug , here is the system info:
PHP Version 5.2.10-2ubuntu6
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
the thing is that im working via local network so my machine is like 192.168.1.100 and the server is 192.168.1.101
is there a way to debug it using xdebug ? i can use zend studio 8 or eclipse pdt or whatever software you can recommend to do this
please help me
I once setup the Drupal debugging environment with xdebug under windows. Not sure whether it applies to Ubuntu as well. But you can take a look and try. Don't forget to post your feedback here (or directly reply to my blog there:). Here's the link
Update: got it working on my Ubuntu 10.10. Basically the steps in the above links are fine, except you might need to build the xdebug your self, which is quite well documented in its documentation.
Yes, it is quite easy to set up if you follow the xdebug instructions. Just make sure that the xdebug port is available over the network (in your xdebug.ini) and that it is enabled and it will work as if it were installed locally.
Related
I have recently installed Windows Server 2016 and I'm trying to get my IIS 10 set-up to create a site.
The PHP 5.6.30 installed just fine, but the PHP Manager 1.2, WinCache 1.3 for PHP 5.6 and CGI didn't install!
The dialog image:
The PHP Manager log: http://pastebin.com/Y9Ud1XUU
The WebPI log: http://pastebin.com/H13fJU0Z
I've tried setting the MajorVersion to 7 (and other values), but the installer still fails. I have .NET 4.5> installed.
as far as i know this addon/tool has not been working since the release of Windows Server 2012 R2.
i have still to find Another tool like it, but so far nothing has come up
though i have found this solution:
https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/php-manager-for-iis-on-windows-10/33ef32f0-6a86-4803-abc1-6de81110f9a8
(confirmed to work, just remember to restart the IIS manager)
PHP Manager requires .NET Framework 3.5 installed and may require a small hack in the registry as outlined here:
I was able to find a workaround at the PHP manager's site.
Just make sure you have .NET 3.5 installed and modify the following registry:
HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion
The value is 10 (Ax0). Just change the value to 9 (or 8), then try to install it again.
To avoid future issues with other IIS stuff, change back to 10 (Ax0). It seems that PHP Manager validates the value converting it into string or something related.
On my Windows Server 2016 machine for some reason the Web Platform Installer (downloaded from https://php.iis.net/) gave me a less recent PHP version (5.3.28) than yours, but all components were correctly installed, with the exception of PHP Manager (which I was expecting given it has been discontinued, and I didn't really care anyway...):
Also, if you want, you can install the components manually, by following this detailed post:
Steps to Install PHP manually on Windows 2016 server
It's really not complicated and it will give you a better understanding of what is not working, should that be the case.
With the help of above article I could also verify that the Web Platform Installer did not miss any important parts (modifying php.ini as required by extensions, setting environment variables, and so on).
Hope it helps.
We have several Windows Server 2012 R2 servers with PHP Manager running without problems (sorry Robert). I have just setup a new one and added PHP Manager and others by installing PHP 5.6 with Web Platform installer. The only thing needed extra was .NET 3.5. Have you tried to setup with .NET 3.5 installed?
When you try to install PHP Manager using the direct download link, the setup will ask you to install .NET 2.0. That isn't necessary :).
I have installed NetBeans on Windows XP machine. I have also downloaded XDebug but I am not sure how to configure to debug the remote server(development machine). My development server is windows 2008 server(64 bit). What version of XDebug do I have to use? My local machine is Windows XP. I appreciate any suggestions.
I know it's far to late. But maybe the answer is helpful to someone passing by the post.
You can find customized installation steps here. The link provided is a reference to a page in which you paste in your php info. The page prints a list of steps to setup xdebug on your machine.
If the link is dead at the time of reading this post, please search using the keywords "xdebug tailored installation steps". This should take you directly to the page in question.
Hope this helps.
I am using Windows 7 and XAMMP 1.7.4. I am confused on how to enable Xdebug. Googling suggested to download xDebug dll , but there are different version of dll on Xdebug site , which confusing me.
Moreover there is Zend debugging and then there Xdebug which one to use ??
How can i enable debugging in Xdebug.
You can follow this tutorial on getting started with xdebug : http://devzone.zend.com/article/2803-Introducing-xdebug
Xdebug and ZendDebug are two separate debuggers, it's up to you to decide which one to use. Either one is pretty easy to setup. Only a couple of steps in Eclipse.
Post the content from your php info page into this page to find out which version to download : http://www.xdebug.org/find-binary.php
Just match your PHP version and OS version. Windows is generally the *VC6 version
Just wondering if you anybody has had much luck getting XDebug working for Drupal 6.14 on Snow Leopard?
I noticed that Snow Leopard seems to come with php 5.3 which some people say should work with Drupal 6.14, though I haven't had any luck.
After that failed, I tried installing php 5.2 using macports (checking out from CVS at a previous revision number). This works fine for php. However, I have had no such luck getting XDebug going.
Any thoughts???
Thanks!
If xdebug is enabled it should show up if you execute a phpinfo();. After xdebug is configured properly you can connect to it using Netbeans. Download the php version here: NetBeans Download. You will have to create a project and point netbeans to your Drupal install. After that you can set breakpoints and press run.
I created a step by step instruction on how to install and enable Xdebug with Netbeans:
http://lucwollants.wordpress.com/2010/10/10/xdebug-and-snow-leopard-more-cake/
Hope this can also help!
I've looked for other questions, but could not find any...
I have freshly installed my Mac with OSX 10.5. I need to learn Python/Django for a new job, so want to set it all up correctly, ready to develop and run from my browser using http://localhost/
I come from a PHP background and always used MAMP before. But I want to get everything working together... Apache, PHP, MySQL, Python, Django. Using MAMP is easy to install a local development server, but I want to get Python and Django running nicely too. So I can just start developing and also following tutorials on Python/Django.
Please give me some steps (with MAMP or not) to get a nicely working environment for Apache, PHP, MySQL, Python and Django. Thank you, all have great days!
James
Why not try the official installation instructions? Really all you need to do is install Django. You can use its built-in server (http://localhost:8000 by default) for testing:
./manage.py runserver
Your Mac should come pre-installed with Python 2.4 (or later) which is fine for Django 1.0.2.
10.5 comes with Apache installed by default System Preferences > Sharing > Web Sharing.
To enable Apache php module edit the Apache conf (/etc/Apache/httpd.conf) file and uncomment the php module line.
LoadModule php5_module libexec/apache2/libphp5.so.
Restart Apache after by disabling & enabling web sharing
Mysql package can be downloaded form the official website and is easy to install
The fastest way to get started with Django, will be to use TurnKey linux Django appliance.
Link: http://www.turnkeylinux.org/appliances/django
I also came from PHP a few months ago. I'm not sure if this will get moderated up or down because my answer changes your question:
Do not use MySQL and Apache for local development on your Mac. Use Sqlite3 and the development server that is bundled with Django - this allows for inline debugging, etc...
Sqlite3 is basically the same as MySQL except you need to use .schema instead of describe.
If you start having problems, get MacPython. This has helped me instantly solve problems faster than trying to work with the stock Python on Leopard.
Try to use pip instead of easy_install where possible.
When you are ready for real deployment, then you'll need MySQL/Apache/Nginx, etc... but those will be on a Linux system and you'll be better prepared at that point to make a good production installation than you are now. Getting a production-quality stack running on the Mac is more of a pain than it's worth.
BTW, when you do install Apache, use wsgi, not mod_python.
Okay. I'd just install MySQL from their site and stick with what's already on my Mac as of 10.5, then install Django and the Python MySQL driver. But since you like MAMP, install MAMP or XAMPP and read something like this which summarized says:
Mac OS X 10.5 comes with "Python 2.5.1, thus you won’t have to install it. You can verify this by running python in the Terminal."
Checkout Django cd $HOME/Code; svn co http://code.djangoproject.com/svn/django/trunk django_trunk
Tell Python where Django is echo "$HOME/Code/django_trunk">/Library/Python/2.5/site-packages/django.pth
Add django-admin.py to your PATH
Install the MySQLdb driver from sf.net this probably requires GCC which means you might want the set with Xcode from Apple's Dev Tools.
Do a source code edit
"At this point, edit the _mysql.c file
and comment out lines 37, 38 and 39 as
follows:"
//#ifndef uint
//#define uint unsigned int
//#endif
run
python setup.py build
sudo python setup.py install
Verify the installation