Skip to content

In Chrome DevTools console console.dir() prints only [object Object] #906

@Natalia-Hristova

Description

@Natalia-Hristova

Make sure to check the existing issues in this repository

If there is no issue for your problem, tell us about it

console.dir() is printed corectlly in Terminal but not in Chrome DevTools console
in Terminal the result is:

CONSOLE LOG file:///app/main-view-model.js:27:20: [object Object]
==== object dump start ====
name: John
age: 34
==== object dump end ====

in Chrome DevTools console:
[object Object]

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.0.0-2018-04-05-11381
  • Runtime(s):
"tns-ios": {
	"version": "4.0.1-rc-2018-04-05-01"
}

Please, tell us how to recreate the issue in as much detail as possible.

  1. Add in some project console.dir()
    e.g.
        var obj = {name: "John", age: 34};
        console.dir(obj);
  1. Run tns debug ios
  2. Open the url in Chrome
  3. Go to Chrome DevTools console and execute the console.dir code

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions