This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226446 - couldn't display the result when runing a php file
Summary: couldn't display the result when runing a php file
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 09:46 UTC by fortruth
Modified: 2013-02-25 12:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE 日志 (49.52 KB, text/plain)
2013-02-21 09:46 UTC, fortruth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2013-02-21 09:46:24 UTC
Product Version = NetBeans IDE 7.3 RC2 (Build 201302050851)
Operating System = Linux version 3.8.0-7-generic running on amd64
Java; VM; Vendor = 1.6.0_27
Runtime = OpenJDK 64-Bit Server VM 20.0-b12

the test case following.  with the helloworld code.

<?php
echo "hello world";
?>


1. run file  - (correct action)
got the message "hello world"  in run view windows

2. debug file - (with error xdebug can't connect)
got the "hello world" in debug view window

3. clear the run view window
CTRL+L

4. run file (wrong action)

no message displayed.
Comment 1 fortruth 2013-02-21 09:46:28 UTC
Created attachment 131661 [details]
IDE 日志
Comment 2 Martin Kanak 2013-02-21 14:12:18 UTC
I have also problems with xdebug. 

PHP Project files:
I am able to debug my project files if i set "Project Properties>Run Configuration>Run As" to "Local Web Site (running on local web server)", there is no problem with debugging, everything works fine. 
But if i set "Project Properties>Run Configuration>Run As" to "Script (run in command line)" i have also the problem as _reporter_. There is still message Waiting for connection (netbeans-xdebug).

PHPUnit files:
I am not able to debug PHPUnit files, because there is also still message Waiting for connection (netbeans-xdebug)... In this case is no difference between "Project Properties>Run Configuration>Run As: Local Web Site (running on local web server)" and "Project Properties>Run Configuration>Run As: Script (run in command line)".

But I think that this is not an NetBeans issue, because Lada also try debugging and it works for him as expected.
Comment 3 Ondrej Brejla 2013-02-25 11:25:59 UTC
Do you have properly set (enabled) xdebug extension for PHP CLI? In Ubuntu it's in /etc/php5/cli/...

You probably have configured just /etc/php5/apache2/...

There are separete config ini files for both run methods of php scripts.
Comment 4 Martin Kanak 2013-02-25 12:02:36 UTC
hehe :) thank you Ondro... We've tried everything possible, but this simple solution did not occur to me and Laďa :) now it works for me also without any problems
Comment 5 Ondrej Brejla 2013-02-25 12:30:03 UTC
You're welcome :)