Telerik Platform - NativeScript Error Handling

Thread is closed for posting
4 posts, 0 answers
  1. Ghislain
    Ghislain avatar
    1 posts
    Member since:
    Mar 2015

    Posted 04 Apr 2015 Link to this post



    I'm discovering your amazing Telerik platform, congratulation for that.


    I'm using NativeScript and I would like to know how can I catch errors. At this moment, I'm testing my dev on iOS and my application crash, I would like to analyze some logs, catch the errors,... to know what's wrong.

    Could you help me with links, articles, ... ?


    Thanks in advance


    Have a nice day



  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 09 Apr 2015 Link to this post

    Hi Ghislain,

    Sorry for the delay with the reply - we are in the final preparation stage of the next NativeScript release...

    Anyways, back to your question - as you mentioned the Platform, I guess you are using the AppBuilder for Desktop client? In that case, you could just use the console.log() method to get your message in the Output window.

    If not, you could either use adb logcat from the console to check the output of an attached android device, or use xCode's output window to check the output of an attached iOS device.

    I hope this helps/

    Kind regards,
    Erjan Gavalji

    See What's Next in App Development. Register for TelerikNEXT.

  3. Nedim
    Nedim avatar
    6 posts
    Member since:
    Feb 2015

    Posted 12 Apr 2015 in reply to Erjan Gavalji Link to this post

    Hi there,
    I am also finding it hard to test & debug app crashes in the AppBuilder with NativeScript. I use both the in-browser and windows client with the help of a iOS companion app. 

    My app kept crashing because of a simple syntax error (forgot one letter on a property). After 3 hours of trying to understand how to debug a NativeScript app (where do the errors pop-up?), I gave up and started to read the code line by line letter by letter, and foud the error. 

    Not even console.log() helped since nothing was logged. The main Log window logged only when a file was saved or moved. DeviceLog allways empty, iPhone logg show only some data while loading the app, no events or console.log. Same goes for the Output window in the in-browser client. 

    Do the NativeScript-based apps have simulators? I see none in my clients. Sime javascript debugging seem very difficult with nativescript. 

  4. Pana
    Pana avatar
    748 posts

    Posted 20 Apr 2015 Link to this post


    We have tried to polish that experience, and now crashes will show the JavaScript and native call stacks. The next version of the companion app is just about the corner. With it you should be able to catch parser errors to point you for directions.

    I am sorry for the logging though. We have logged an issue to implement a "console view" in the companion app that will show the JavaScript console contents, however it will be left for post V1.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top