NativeScript / NativeScript/nativescript-cli

NS7 Console log, stack traces/errors not displaying context (module name, line number, etc)

Open
#5,399 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 7.0.8

Describe the bug
After updating to NS7 and when debugging app with tns debug iOS/android, and attaching the Chrome debugger to the app, error contexts or even simple console.log statements are not printed with the source context. This makes any errors thrown by the app impossible to debug.

To Reproduce
Run app using either hardware or emulator:
tns run iOS
then attach debugger:
tns debug iOS

launch Chrome or Chromium, then paste devtools link in address bar:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&ws=localhost:40000

Observe the console

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with tns run iOS and tns debug iOS, then attach Chrome or Chromium using the DevTools URL shown in the report. Inspect the CLI's debugging and console-output entry points; the work is done when logs and errors display source context such as the module name and line number.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.