FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Can't connect to Debug for PHP on Windows XP

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
brianb



Joined: 20 Mar 2009
Posts: 4

PostPosted: Fri Mar 20, 2009 3:52 pm    Post subject: Can't connect to Debug for PHP on Windows XP Reply with quote

I recently installed Netbean PHP and am having a problem connecting to debug.

My installation:

NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

I downloaded

php_xdebug-2.0.0-5.2.2.dll
and
php_xdebug-2.0.4-5.3.0-vc9.dll

One document I read stated that I should put the dll debug file into the php directory. I don't know if this is significant, but I've placed it in this directory.

My php.ini file has the following lines at the top of the file. I don't know whether it is significant where in the php.ini file these lines need to appear.

zend_extension_ts="c:\Documents and Settings\Brian\My
Documents\Downloads\XAMP\xampplite\php\php_xdebug-2.0.0-5.2.2.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000

When I try to debug a php file with a breakpoint set the debugger goes right past the breakpoint and the lower right-hand corner of the IDE states "Waiting For Connection: (netbeans-xdebug)".

I created a php file which contains phpinfo();
When I acces this php page it spits out some debug information, but looks like it can't locate the debug DLL.

Configure Command: cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"

Debug build: No

If I open a cmd window and run "php.exe --ini" it states the following:

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Documents and Sett
ings\Brian\My Documents\Downloads\XAMP\xampplite\php\ext\php_pdf.dll' - The spec
ified module could not be found.
in Unknown on line 0
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File: C:\Documents and Settings\Brian\My Documents\
Downloads\XAMP\xampplite\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)


If I run "php.exe -v" I get the following output:

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Documents and Sett
ings\Brian\My Documents\Downloads\XAMP\xampplite\php\ext\php_pdf.dll' - The spec
ified module could not be found.
in Unknown on line 0
PHP 5.2.8 (cli) (built: Dec 8 2008 19:31:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Xdebug v2.0.0, Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, by Der
ick Rethans


Do I have a mismatch with my PHP and Java installations? Is htere some other tweak I need to make in my ini file? Any help is greatly appreciated.
Back to top
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Mon Mar 23, 2009 8:58 am    Post subject: Can't connect to Debug for PHP on Windows XP Reply with quote

Hi,

If you use php script for getting more info (like "php -v", "php -i",
"php -m" all could be handy for you), then you should know that
XAMPP AFAIK contains more than one php.ini file - the correct one for
debugging web pages is in xampp\apache\bin \php.ini (i.e.,
/c:\xampp\apache\bin\php.ini/). instead of xamp\php\php.ini). So, you
should probably use "php -vc /c:\xampp\apache\bin\php.ini/" (the same
for -i -m)

Radek


brianb wrote:
Quote:
I recently installed Netbean PHP and am having a problem connecting to debug.



My installation:



NetBeans IDE 6.5 (Build 200811100001)

Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16

System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)



I downloaded



php_xdebug-2.0.0-5.2.2.dll

and

php_xdebug-2.0.4-5.3.0-vc9.dll



One document I read stated that I should put the dll debug file into the php directory. I don't know if this is significant, but I've placed it in this directory.



My php.ini file has the following lines at the top of the file. I don't know whether it is significant where in the php.ini file these lines need to appear.



zend_extension_ts="c:\Documents and Settings\Brian\My

Documents\Downloads\XAMP\xampplite\php\php_xdebug-2.0.0-5.2.2.dll"

xdebug.remote_enable=1

xdebug.remote_handler=dbgp

xdebug.remote_host=localhost

xdebug.remote_port=9000



When I try to debug a php file with a breakpoint set the debugger goes right past the breakpoint and the lower right-hand corner of the IDE states "Waiting For Connection: (netbeans-xdebug)".



I created a php file which contains phpinfo();

When I acces this php page it spits out some debug information, but looks like it can't locate the debug DLL.



Configure Command: cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"



Debug build: No



If I open a cmd window and run "php.exe --ini" it states the following:



PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Documents and Sett

ings\Brian\My Documents\Downloads\XAMP\xampplite\php\ext\php_pdf.dll' - The spec

ified module could not be found.

in Unknown on line 0

Configuration File (php.ini) Path: C:\WINDOWS

Loaded Configuration File: C:\Documents and Settings\Brian\My Documents\

Downloads\XAMP\xampplite\php\php.ini

Scan for additional .ini files in: (none)

Additional .ini files parsed: (none)





If I run "php.exe -v" I get the following output:



PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Documents and Sett

ings\Brian\My Documents\Downloads\XAMP\xampplite\php\ext\php_pdf.dll' - The spec

ified module could not be found.

in Unknown on line 0

PHP 5.2.8 (cli) (built: Dec 8 2008 19:31:23)

Copyright (c) 1997-2008 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

with Xdebug v2.0.0, Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, by Der

ick Rethans





Do I have a mismatch with my PHP and Java installations? Is htere some other tweak I need to make in my ini file? Any help is greatly appreciated.










Back to top
brianb



Joined: 20 Mar 2009
Posts: 4

PostPosted: Wed Mar 25, 2009 1:59 am    Post subject: Reply with quote

Radek:

You're a genuis. I now have that "Ahhh..." feeling of having XDEBUG working in my environment. Your comment to edit the other php.ini file in xampp\apache\bin was right on.

Thanks.
Back to top
View user's profile Send private message
joephp



Joined: 25 Mar 2009
Posts: 1

PostPosted: Wed Mar 25, 2009 3:55 am    Post subject: Same Problem Reply with quote

Hello, I am also getting the "Waiting For Connection: (netbeans-xdebug)" message. I'm using Triad's AMP. There's only one php.ini file and it's in c:\windows.

I made the modifications to the .ini file that the documentation suggests.

Here's some phpinfo() data:

Build Date Jan 11 2006 16:35:21
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.2 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini

Thanks for your help! Joe
Back to top
View user's profile Send private message
meghanquinn



Joined: 04 Nov 2009
Posts: 1

PostPosted: Wed Nov 04, 2009 6:24 am    Post subject: Reply with quote

I think you need the correct version of Java installed.

Go here....http://java.sun.com/javase/downloads/index.jsp

Download.....JDK 6 Update 16.....then install it....it will take several minutes.

Then go here....http://www.netbeans.org/downloads/indexB.html

Download the big bundle on the far right.... Good luck.

By the way, thanks for your kind information. I like your blog very much because of its interesting topics. i'm student and preparing for my testking for attaining the certification. Although it is not hard to get certified but it keeps me busy. I've also attained certification of another course of vmware certification which I had passed last three months back. Also I am trying to complete my pending thesis project of pmp certification which I'm sure will be completed soon. I normally search on topics which you described on your blog these are great and really informative. Thanks for beneficial thread.
Back to top
View user's profile Send private message
AGeorge



Joined: 25 Jun 2009
Posts: 8

PostPosted: Wed Nov 04, 2009 9:34 pm    Post subject: Reply with quote

Ive got xdebug working ok, it will stop on first line. But it wont debug any PHP file outside of the default startup index.php - if I put a breakpoint on any other PHP source it just sails past. Ive asked this elsewhere and had no sensible answers. Using latest and had tried Netbeans versions prior to 6.8 beta. Using default Netbeans installation for PHP. Have reported it as a bug too. Any one possibly inspired with what might be happening, as I can debug all files fine in Eclipse, but it is nowhere near as nice to work with at Netbeans. If all files are in single directory then, and only then it will debug them.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB