NativeScript: [TNS 3.0 RC] Console.dir not working as expected compared to Console.dump
When logging objects or arrays with the replaced Console.dir I get a non-detailed dump.
const arr = [
{ id: 1, title: "Item 1" },
{ id: 2, title: "Item 2" },
{ id: 3, title: "Item 3" }
];
console.dir(arr);
The logged dump:
CONSOLE LOG file:///app/main-page.js:33:14: [object Object],[object Object],[object Object]
0: [object Object]
1: [object Object]
I want to see the properties of each object, but they render as [object Object]. Also, it doesn’t even log the last, third, item.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 7
- Comments: 22 (7 by maintainers)
Issue still persists in version 3.4.0 tns core modules and 3.4.1 iOS/Android platforms.
Just tested in 3.3.1
@NordlingArt just tested on android and it works (tns 3.0 rc)