Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28542] iOS: Logging an object on simulator does not show full object

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-10-05T18:26:28.000+0000
Affected Version/sRelease 10.1.0
Fix Version/sRelease 10.1.1
Componentsn/a
Labelsregression
ReporterEwan Harris
AssigneeEwan Harris
Created2021-09-29T11:41:58.000+0000
Updated2021-11-17T10:46:56.000+0000

Description

Description

When logging an object on an iOS simulator it only logs the first bracket and not the full object. This is because of the filtering introduced in [this commit](https://github.com/appcelerator/ioslib/commit/b06258a7558e544a7c4bc482f93bb6b7c03072e9#diff-657691f6709d5e6f2f471b79e5d5fbdc2b5b33f3c4a1c16714fd038f18f735da)
var _window = Ti.UI.createWindow()
_window.addEventListener('click', (e) => {
	console.log(e);
})
_window.open();
*Workaround* * Stringify the object before logging it * Look for the Found application log file: log and open that file to view the log directly

Steps to reproduce

1. Add the above code to your app.js 2. Build for an iOS simulator 3. Tap the window

Actual

Only \[INFO\] :   \{ gets logged

Expected

The entire object should get logged

Comments

  1. Ewan Harris 2021-09-29

    Possible PR: https://github.com/appcelerator/ioslib/pull/214
  2. Sebastian Klaus 2021-10-05

    Possible to put it into 10.0.1.1? Many are waiting for that
  3. Ewan Harris 2021-10-05

    [~benutzername] we don't currently have a full 10.1.1 released lined up as we've not had many issues come from the 10.1.0 release, but I think we will look to backport this and other fixes into 10_1_X to allow people to grab them from a CI build
  4. Ewan Harris 2021-10-08

    This was backported onto the 10_1_X branch
  5. Jonas Funk Johannessen 2021-10-13

    Question: When this fix has been backported, will reinstalling 10.1.0.GA fix the issue?
  6. Ewan Harris 2021-10-13

    [~jonasfunk] It means it's available on that branch, so you can install a CI build with \[appc\] ti sdk install -b 10_1_X and get a build with the fix. Already released GA's are never updated, so this fix will most likely go into a 10.2.0.GA (unless we do a 10.1.1.GA)

JSON Source