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 236788 - Make console log output navigable
Summary: Make console log output navigable
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-05 00:38 UTC by everflux
Modified: 2013-10-09 12:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-10-05 00:38:01 UTC
Given php console output (logging from running php launched from Netbeans) I would like to <ctrl>-click on file (and better yet, line numbers) to jump directly to the mentioned line.

Example:

[Sat Oct  5 02:33:00 2013] PHP Notice:  Trying to get property of non-object in /home/tkruse/arbeit/geotest/maxmind/php-api/geoip.inc on line 398
[Sat Oct  5 02:33:00 2013] PHP Notice:  Trying to get property of non-object in /home/tkruse/arbeit/geotest/maxmind/php-api/geoip.inc on line 402

<ctrl> should turn elements into underline/hyperlink state:
...geoip.inc should lead to the file

"line 398" should jump to the file in line 402.
"line 402" should jump to the file in line 402.
Comment 1 Ondrej Brejla 2013-10-05 07:03:10 UTC
Tome? Can you evaluate? Thanks.
Comment 2 Tomas Mysik 2013-10-07 05:46:17 UTC
(In reply to everflux from comment #0)
> logging from running php launched from Netbeans

What does it mean exactly? What are the exact steps to get such a log?

Simply reopen this issue, thanks.
Comment 3 everflux 2013-10-07 19:06:08 UTC
Create php project, add file

---
<?php

echo $foobar;
---
Launch php project from internal webserver
(run configuration, php built-in)
Open file in browser.
Output:

[Mon Oct  7 21:03:09 2013] PHP Notice:  Undefined variable: foobar in /home/tkruse/arbeit/source/demo.php on line 3
[Mon Oct  7 21:03:09 2013] PHP Stack trace:
[Mon Oct  7 21:03:09 2013] PHP   1. {main}() /home/tkruse/arbeit/source/demo.php:0
[Mon Oct  7 21:03:09 2013] 127.0.0.1:49988 [200]: /demo.php

The "notice" is from php having notices enabled.
The stack trace is from the xdebug extension.

Similar output from other programming errors or runtime errors.
Comment 4 Tomas Mysik 2013-10-08 09:17:34 UTC
Fixed, thanks for reporting.

http://hg.netbeans.org/web-main/rev/6618fea29105
Comment 5 Quality Engineering 2013-10-09 02:21:08 UTC
Integrated into 'main-silver', will be available in build *201310090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6618fea29105
User: Tomas Mysik <tmysik@netbeans.org>
Log: #236788 - Make console log output navigable
Comment 6 mmolda 2013-10-09 12:36:51 UTC
Verified. Thanks.

Product Version: NetBeans IDE Dev (Build 201310090001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)