NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore

Home Page:http://docs.nativescript.org/runtimes/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome DevTools: Logs are not shown in Chrome console tab

Natalia-Hristova opened this issue · comments

Environment

  • CLI: rc
  • iOS Runtime: 5.1.0

Describe the bug
Logs are not shown in Chrome console tab. They are shown in the terminal only.
Tested on device and simulator.

To Reproduce

  1. Add console.log(), console.dir(), console.time() e.g. on a button tap
  2. Run tns debug ios
  3. Open Chrome url
  4. Tap the button
  5. Look at the Chrome console tab

Expected behavior
Logs to be shwon in Terminal and Chrome console tab.

Sample project

Additional context
This is regression after changing Chrome version to use bundled tools. NativeScript/nativescript-cli@8a76625

cosnole.log(), console.dir() work but console.time() - not

console.time("startup");
setTimeout(() => {
    console.timeEnd("startup");
}, 1000);