Skip to content

Android: Exception and stack trace is not shown in terminal #2818

Closed
@vakrilov

Description

@vakrilov

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.0.0
  • Cross-platform modules: 3.0.0
  • Runtime(s): 3.0.0

Please tell us how to recreate the issue in as much detail as possible.

  1. tns create testApp --tsc
  2. Go to main-view-model.ts and replace the onTap() method with:
public onTap() {
    console.log("Here we go:")
    throw new Error("I want to see this in the console!");
}
  1. Run the app with tns run android and click the button

Result: Exception is thrown and the app shows the exception screen. However, in the terminal I have only this:

JS: Here we go:
05-16 15:06:28.881  9474  9474 W System.err: 	at com.tns.Runtime.callJSMethodNative(Native Method)
05-16 15:06:28.881  9474  9474 W System.err: 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1021)
05-16 15:06:28.882  9474  9474 W System.err: 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:903)
05-16 15:06:28.882  9474  9474 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:890)
05-16 15:06:28.882  9474  9474 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:874)
05-16 15:06:28.882  9474  9474 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:866)

Expected: Exception and stack trace are printed in the terminal. This was the behavior in NativeScript 2.5.x

Note: I can see the exception and stack trace if I run adb logcat so this is probably some kind of filtering problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions