[jbosstools-issues] [JBoss JIRA] (JBIDE-15932) CordovaSim needs to display console logs especially during startup
Ilya Buziuk (JIRA)
issues at jboss.org
Thu Jan 30 12:05:28 EST 2014
[ https://issues.jboss.org/browse/JBIDE-15932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12940258#comment-12940258 ]
Ilya Buziuk commented on JBIDE-15932:
-------------------------------------
< Is there a way to display JS errors in CordovaSim?
[~burrsutter], I have found a way to do it by overriding *window.onerror* with a BrowserFunction. Actually I have decided to override main js console functions:
- console.log
- console.warn
- console.error
- + window.onerror
Each function will have a different color in the eclipse console. I have created a short demo video - http://www.youtube.com/watch?v=sNneG-eZSz0&feature=youtu.be
> CordovaSim needs to display console logs especially during startup
> ------------------------------------------------------------------
>
> Key: JBIDE-15932
> URL: https://issues.jboss.org/browse/JBIDE-15932
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: browsersim
> Affects Versions: 4.1.1.Beta1
> Reporter: Gorkem Ercan
> Assignee: Ilya Buziuk
> Priority: Blocker
> Labels: jbds711
> Fix For: 4.1.2.CR1, 4.2.0.Alpha2
>
>
> When a cordova application is launched the console.log calls are not displayed on Eclipse console (or anywhere else). CordovaSim needs a place to display the logs either within eclipse or on the Ripple console so the user can be notified about errors happening early on.
> Just using firebug or similar would not solve this issue since it is not started early enough.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list