Finding a virtual machine with Xdebug working for PHP in Netbeans

I followed many user guides, spent many long hours reading these questions on SO

How to debug PHP with netbeans and Xdebug
How to debug PHP with netbeans and Xdebug on Windows?
How do you debug a PHP test file in Netbeans?
Debugging php with Netbeans - Querying a source for recruits
Debug the next PHP page in Netbeans from Firefox
How to debug a PHP application?
how to run php file in netbeans

and currently I'm waiting for my hair to grow back to tear it again.

Anyhoo, it looks like someone else had to solve this, so & hellip; can someone give me the download url for a free Netbans virtual machine configured for Xdebug with PHP?

Obviously this will be Linux; I would prefer Ubuntu, but it will accept. I prefer Virtual Box a bit, but VMware is just fine.

I am sure that this will help many people, so thanks on behalf of all of us.


Alternatively, you can post a link (link to a), which is known to work with PHP.INI (although I appreciate that this will require a little editing)

+3
source share
3 answers

I cannot offer you VHD download, but here is how I did my work with VirtualBox

Network configuration

, , . . NAT-, . "Host-only Adapter".

Ubuntu .

/etc/network/interfaces IP- 192.168.56.1/24 ( ),

# The primary network interface
auto eth0
iface eth0 inet dhcp

# Static VBox IP
auto eth1
iface eth1 inet static
address 192.168.56.10
netmask 255.255.255.0

IP-.

♥ LAMP

XDebug . [Zend] /usr/local/zend/etc/php.ini

zend_extension="/usr/local/zend/lib/php_extensions/xdebug.so" 

[xdebug]
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.show_local_vars=0
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.show_exception_trace=0

Zend Server, , LAMP. , LAMP , XDebug

sudo aptitude install php5-xdebug
+3

BitNami LAMPStack VMWare Xdebug, . NetBeans, , .

+1

You only need to add the following to / etc / php 5 / conf.d / xdebug.ini on the guest machine.

[xdebug]
xdebug.remote_enable=1
xdebug.remote_connect_back=1
0
source

All Articles