Hi,
I think that many of you have already heard of http://jsconsole.com
If not, it’s a service that can show the JS console entries remotely.
When you add their *.js script to your code, you can monitor the console via internet.
You must add the tag
<script src="http://jsconsole.com/remote.js?<<your_pass>>"></script>
to your <head>
on the index.html file, where <<your_pass>>
is anything you want.
Then, go to
http://jsconsole.com/?: listen <<your_pass>>
and run your app.
Everything that you put in console.log('text')
should appear there, and now you can debug your app when using Ionic View.
Now you must have seen that the errors doesn’t appear!
To log the errors as well, surround your suspictious code with try and catch, and print the error object into the console, like:
try{
//your code here
}catch(e){
console.log(e);
console.log(e.stack);
console.log(e.line);
}
and now you can see what and where anything got wrong.
Hope to help you, and sorry for the bad english…!
Regards,
Jeff