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 
  

Using Xdebug with NetBeans displays variables with no values

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



Joined: 12 Feb 2009
Posts: 2
Location: Philadelphia, USA

PostPosted: Thu Feb 12, 2009 4:34 pm    Post subject: Using Xdebug with NetBeans displays variables with no values Reply with quote

I believe I have NetBeans and Xdebug configured correctly but I cannot get the debugger to show the value of each variable. Any ideas on how to get the values to show up? See image below.



My setup is as follows...

NetBeans IDE 6.5 (Build 200811100001)
-Run As: Local Web Site (running on local Web server)

Xampp version 1.7.0 (including patch 2)
-Apache 2.2.11
-PHP 5.2.8

Windows XP

My php.ini...
Code:

[Zend]
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End:

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.show_local_vars=On


My test code...
Code:

$firstColor = 'red';
$secondColor = 'blue';
$count = 0;
for($i=0; $i<5; $i++) $count++; //set break here for testing
echo "Test Complete: Count ($count)";
Back to top
View user's profile Send private message
Robert Gonzalez
Posted via mailing list.





PostPosted: Thu Feb 12, 2009 7:42 pm    Post subject: Using Xdebug with NetBeans displays variables with no values Reply with quote

I believe there has been talk about the recent update to the JDK (release 12 I believe) causing this. The most common answer has been to downgrade your JDK to release 11.

On Thu, Feb 12, 2009 at 8:34 AM, TipPro <address-removed ([email]address-removed[/email])> wrote:
Quote:
I believe I have NetBeans and Xdebug configured correctly but I cannot get the debugger to show the value of each variable. Any ideas on how to get the values to show up? See image below.



[Image: http://i730.photobucket.com/albums/ww310/tippro/blank_variables.gif ]



My setup is as follows...



NetBeans IDE 6.5 (Build 200811100001)

-Run As: Local Web Site (running on local Web server)



Xampp version 1.7.0 (including patch 2)

-Apache 2.2.11

-PHP 5.2.8



Windows XP



My php.ini...


Code:


[Zend]

;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"

;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"

;zend_optimizer.enable_loader = 0

;zend_optimizer.optimization_level=15

;zend_optimizer.license_path =

; Local Variables:

; tab-width: 4

; End:



[XDebug]

;; Only Zend OR (!) XDebug

zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"

xdebug.remote_enable=true

xdebug.remote_host=127.0.0.1

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=1

xdebug.profiler_output_dir="C:\xampp\tmp"

xdebug.show_local_vars=On







My test code...


Code:


$firstColor = 'red';

$secondColor = 'blue';

$count = 0;

for($i=0; $i<5; $i++) $count++; //set break here for testing

echo "Test Complete: Count ($count)";










([email]address-removed[/email])
([email]address-removed[/email])




--
Robert A. Gonzalez
Back to top
orglee



Joined: 12 Feb 2009
Posts: 2

PostPosted: Thu Feb 12, 2009 8:16 pm    Post subject: Reply with quote

Wow I just registered to ask about that. Its basically my 3rd time installing NetBeans but this time I would like to stick up with it. Could you be so kind and tell us, how to do downgrade like that without damaging anything. Or does it goes just like, remove newer and install older?

Regards.
Back to top
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Fri Feb 13, 2009 11:16 am    Post subject: Using Xdebug with NetBeans displays variables with no values Reply with quote

Hi orglee,
Quote:
Wow I just registered to ask about that. Its basically my 3rd time installing NetBeans but this time I would like to stick up with it. Could you be so kind and tell us, how to do downgrade like that without damaging anything. Or does it goes just like, remove newer and install older?

yes, you can do it this way.

Hopefully useful links for you:
http://java.sun.com/products/archive/j2se/6u11/index.html
http://java.sun.com/javase/6/webnotes/install/index.html
http://java.sun.com/products/archive

Radek

Quote:


Regards.










Back to top
lexlythius



Joined: 27 Feb 2009
Posts: 1

PostPosted: Fri Feb 27, 2009 5:54 pm    Post subject: Visual problem it seems Reply with quote

The problem actually seems to be that debugger view uses white font over white background.

If you select the value cell with your mouse you will be able to see values.



nb-debug.png
 Description:
 Filesize:  3.32 KB
 Viewed:  1855 Time(s)

nb-debug.png


Back to top
View user's profile Send private message
TipPro



Joined: 12 Feb 2009
Posts: 2
Location: Philadelphia, USA

PostPosted: Fri Feb 27, 2009 6:04 pm    Post subject: Reply with quote

I did not notice that before.

You can see the value when you click on the actual 'value' field. When you click off of the field the value disappears.
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