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 212250 - Support for console object in cc
Summary: Support for console object in cc
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 16:04 UTC by Vladimir Riha
Modified: 2012-12-03 07:06 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 Vladimir Riha 2012-05-09 16:04:09 UTC
Would be nice to have a console object in code completion with following functions (perhaps there are more):
console.log(); console.error(); console.warn(); console.debug(); console.info()

It's used in Chrome, Firebug extension for FF, Node.js and perhaps elsewhere as well.
Comment 1 c69 2012-12-01 19:51:49 UTC
console object exists in IE8+, Safari and Opera as well.

p.s.: but it seems like NB has some support for console methods in NB7.3, at least (via stub_console.js), so maybe this bug should be closed as complete?
Comment 2 Martin Fousek 2012-12-03 07:06:15 UTC
Yes, in the NB7.3 you should be already able to call the Console object using:
console.|
or better by its full chain
window.console.|