NativeScript / NativeScript/nativescript-cli
NS7 Console log, stack traces/errors not displaying context (module name, line number, etc)
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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