Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Natalia-Hristova opened this issue Mar 18, 2019 · 0 comments

Comments

@Natalia-Hristova
Copy link

Natalia-Hristova commented Mar 18, 2019

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 Natalia-Hristova changed the title Chrome DevTools: Exception is thrown in Chrome's Console when try to console.trace() Chrome DevTools: Error is shown in Chrome's Console when try to console.trace() Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant