[jbosstools-issues] [JBoss JIRA] (JBIDE-18227) JS console.debug() displays message to console with LOG prefix

Ilya Buziuk (JIRA) issues at jboss.org
Mon Sep 8 05:27:01 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999787#comment-12999787 ] 

Ilya Buziuk commented on JBIDE-18227:
-------------------------------------

Actually console.debug was implemented:
{code}
"debug: function(message) {" //$NON-NLS-1$ 
	     "console.log(message);" //$NON-NLS-1$ do the same as for 'console.log'
"}" 
{code}
^ Due to the fact that *console.log* and *console.debug* are identical -  https://developer.chrome.com/devtools/docs/console-api#consoledebugobject-object
However, this implementation has a prefix side effect. Need to do it better. 

> JS console.debug() displays message to console with LOG prefix
> --------------------------------------------------------------
>
>                 Key: JBIDE-18227
>                 URL: https://issues.jboss.org/browse/JBIDE-18227
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: browsersim
>    Affects Versions: 4.2.0.CR1
>         Environment: JBDS 8.0.0.CR1-v20140831-0335-B201
>            Reporter: Vlado Pakan
>            Assignee: Ilya Buziuk
>            Priority: Minor
>             Fix For: 4.3.0.Alpha1
>
>
> JavaScript command console.debug("debug message") invoked within page opened in Browsersim is displaying this string to Eclipse console:
> {noformat}
> !JavaScript LOG: debug message
> {noformat}
> It should display this message maybe also with different color then log message is displayed:
> {noformat}
> !JavaScript DEBUG: debug message
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list