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: can set breakpoint in the middle of multiline log

Natalia-Hristova opened this issue · comments

Environment

  • CLI: 5.1.0
  • Cross-platform modules:5.1.0
  • iOS Runtime: 5.1.0

Describe the bug
When debugging ios project you are able to set breakpoint in the middle of multiline log (after the second try).
https://www.screencast.com/t/tgTlzs9oUBZw

NOTE: In android this behaves as expected
https://www.screencast.com/t/vpHkSqGyj

To Reproduce

  1. Create JS project tns create TestApp --js
  2. Add multiline console.log()
console.log(`Button was pressed1
Button was pressed2
Button was pressed3
Button was pressed4
Button was pressed5
Button was pressed6
Button was pressed7
Button was pressed8`);
}
  1. run tns debug ios
  2. Try to set breakpoint somewhere in the multiline log

Expected behavior
Not be able to set breakpoint in the middle of the multiline log

Sample project

Additional context
This issue is reproducible only with JS project. In TS and Angular all lines (except the first one) of the multiline log are disabled.