android icon indicating copy to clipboard operation
android copied to clipboard

Chrome DevTools: Error is shown in Chrome's Console when try to console.trace()

Open Natalia-Hristova opened this issue 5 years ago • 0 comments

Environment

  • Cross-platform modules:5.2.2
  • Android Runtime: tried these versions: 5.2.1, 5.2.0, 5.1.0, 5.0.0 and next

Describe the bug Error is shown in Chrome DevTools Console when try to console.trace()

main-view-model.js:29 Trace
at HelloWorldModel.onTap (file:///data/data/org.nativescript.TestAppTr/files/app/main-view-model.js:29:17)
at Observable.notify (file:///data/data/org.nativescript.TestAppTr/files/app/tns_modules/tns-core-modules/data/observable/observable.js:107:32)
at Observable._emit (file:///data/data/org.nativescript.TestAppTr/files/app/tns_modules/tns-core-modules/data/observable/observable.js:127:18)
at ClickListenerImpl.onClick (file:///data/data/org.nativescript.TestAppTr/files/app/tns_modules/tns-core-modules/ui/button/button.js:26:23)

To Reproduce

  1. tns create TestApp --ts
  2. Add console.trace();
  3. tns debug android
  4. Open URL in Chrome and execute the code that calls console.trace();

Expected behavior console.trace() call stack to be logged in Chrome DevTools Console

Sample project

Additional context When tns run android the same content is logged by CLI.

Natalia-Hristova avatar Mar 18 '19 07:03 Natalia-Hristova