This is a migrated thread and some comments may be shown as answers.

Telerik Platform - NativeScript Error Handling

3 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ghislain
Top achievements
Rank 1
Ghislain asked on 04 Apr 2015, 09:03 AM

Hello,

 

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

 

Ghislain

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 09 Apr 2015, 07:43 AM
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
Telerik
 

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

 
0
Nedim
Top achievements
Rank 1
answered on 12 Apr 2015, 05:50 PM

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. 

0
Pana
Telerik team
answered on 20 Apr 2015, 07:31 AM
Hello,

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.

Regards,
Pana
Telerik
 

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

 
Tags
General Discussions
Asked by
Ghislain
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Nedim
Top achievements
Rank 1
Pana
Telerik team
Share this question
or