{ "id": "174041", "key": "TIMOB-27345", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-04T14:30:02.000+0000", "created": "2019-08-20T20:33:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-10-04T14:30:02.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "Debugging with any of the {{console}} or {{Ti.API}} logging functions needs some improvement when it comes to printing object structures. Since 8.1.0.GA printing an object simply outputs {{[object Object]}} in some cases which is not very useful.\r\n\r\nWith TIMOB-26670 we now have {{util.inspect}} available and we should hook that up with {{console}} and {{Ti.API}} just like Node.js does for extensive logging/debugging capabilities.\r\n\r\nA few examples:\r\n\r\n{code:javascript}\r\nconst a = {};\r\na.b = a;\r\nconsole.log(a); // crashes on 8.0.1.GA, or just prints \"[object Object]\" on 8.1.0.GA\r\n\r\nconst b = {\r\n foo: 'bar'\r\n}\r\nconsole.log(b); // prints \"{ foo: 'bar' }\" on 8.0.1.GA, or just \"[object Object]\" on 8.1.0.GA\r\n\r\nconst map = new Map();\r\nmap.set('foo', 'bar');\r\nconsole.log(map); // prints \"{}\" on 8.0.1.GA, or just \"[object Map]\" on 8.1.0.GA\r\n{code}", "attachment": [], "flagged": false, "summary": "Improve console debugging capabilities with util.inspect", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "451635", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11165", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-26T10:29:06.000+0000", "updated": "2019-09-26T10:29:06.000+0000" }, { "id": "451637", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed: Waiting on Jenkins build", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-26T12:38:47.000+0000", "updated": "2019-09-26T12:38:47.000+0000" }, { "id": "451813", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-03T14:05:21.000+0000", "updated": "2019-10-03T14:05:21.000+0000" }, { "id": "451851", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "*Verified working*\r\n\r\nTest environment\r\nStudio Ver: 5.1.4.201909061933\r\nSDK Ver: 8.3.0.v20191003144543\r\nOS Ver: 10.14.6\r\nAppc NPM: 4.2.15\r\nAppc CLI: 7.1.1\r\nNode Ver: 10.16.3\r\nNPM Ver: 6.11.3\r\nEmulator: ⇨ Pixel 3 (Android 9)\r\n\r\n*Output*\r\n\r\n{code:java}\r\n[INFO] { b: [Circular *1] }\r\n[INFO] { foo: 'bar' }\r\n[INFO] Map { 'foo' => 'bar' }\r\n{code}\r\n\r\nTicket closed.\r\n\r\n", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-04T14:28:58.000+0000", "updated": "2019-10-04T14:28:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }