[iOS] possible console bug

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Wed Jul 28 12:19:46 EDT 2021


I tested here with Big Sur/LC9.6.3 RC2 and Simulator.

I can confirm that doing it like Panos described will show the put output.

But you have to press the "Start" icon at the top in Console app  before the put output is captured by the Console app. 
So if you did the output in the app before you pressed the "start" button, that previous output is not listed in the console. Only 'put outputs' which where done after pressing start are listed in the log.


Regards
Matthias


> Am 28.07.2021 um 15:57 schrieb panagiotis m via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hello Andre,
> 
> I am good, thanks for asking. I hope you are well too :)
> 
> I just tested on Big Sur. I had to do an extra step:
> 
> When you see the "system.log" window, the one where there is no option to
> choose "iPhone 8" at the left, force quit the Console app. Then reopen the
> Console app directly, i.e. not through the Simulator, just go to
> /Applicatons/Utilities/Console and open it.
> 
> At this point you should see a different Console window, where choosing
> "iPhone 8" at the left should be possible. Again, filter by the standalone
> name because there is a lot of noise.
> 
> Hope this helps.
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 28 Jul 2021 at 16:39, Andre Garzia via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Hi Panos,
>> 
>> Hope all is well with you my friend, thanks a lot for the speedy reply.
>> 
>> I think things might have changed in Big Sur because I see a different
>> console app. Mine doesn’t have a way to switch to this “iPhone 8” label.
>> Below is a screenshot from my console app:
>> 
>> https://andregarzia.com/files/console-window.png <
>> https://andregarzia.com/files/console-window.png>
>> 
>> The “system.log” being shown is definitely the iPhone 8 Simulator one, not
>> only because of the content but also because option-clicking the file on
>> top shows the path to it and it is coming from inside the CoreSimulator
>> folder.
>> 
>> Still, I don’t see any output from LiveCode standalone in it.
>> 
>> Best
>> A
>> 
>> 
>>> On 28 Jul 2021, at 14:19, panagiotis m via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>> 
>>> Hello Andre,
>>> 
>>> It works as expected for me.
>>> 
>>> MacOS Mojave
>>> Xcode 11.3
>>> iOS 13.3 Simulator
>>> 
>>> In the simulator go to Debug -> Open System Log
>>> This opens the Console app
>>> In the Console window, in the left hand side, you should see the name of
>>> the simulator (e.g. "iPhone 8"). Click on it.
>>> There will be a lot of logs, so I suggest to filter the output by the
>>> standalone name (e.g. type the standalone name, as it appears in the
>>> General tab of the S/B in the top right Search box of the Console window)
>>> 
>>> I have a button that does "put the milliseconds && "==================="
>>> and I can see the expected output in the console logs every time I press
>>> the button in the simulator.
>>> 
>>> Cheers,
>>> Panos
>>> --
>>> 
>>> On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>> 
>>>> I’m just bumping this thread because I haven’t been able to see any log
>>>> information when using the Simulator.
>>>> 
>>>> Can more people confirm this? Is this a bug, and if so who owns that bug
>>>> LC or Apple?
>>>> 
>>>> It becomes really hard to debug a mobile application when you can’t see
>>>> logs on the Simulator.
>>>> 
>>>> I made a recipe stack here, but I want to be sure before I fill a bug
>>>> report.
>>>> 
>>>> Best
>>>> A
>>>> 
>>>>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode <
>>>> use-livecode at lists.runrev.com> wrote:
>>>>> 
>>>>> Andre,
>>>>> 
>>>>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina.
>>>> Took me some time to download Xcode.
>>>>> 
>>>>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and
>>>> iPhone 12 iOS 14.6) and was able to see the output in the Console log
>>>> pressing the 'open console' button in Xcode's 'Devices and Simulators'
>>>> (shift CMD 2)
>>>>> 
>>>>> I selected my device in that tool and pressed 'open console'. I had the
>>>> 'Now' mode activated and filtered for my output. I could see the output.
>>>>> 
>>>>> But i still do not see it when using the simulator.
>>>>> 
>>>>> Regards,
>>>>> Matthias
>>>>> 
>>>>> 
>>>>> 
>>>>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode <
>>>> use-livecode at lists.runrev.com>:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode <
>>>> use-livecode at lists.runrev.com> wrote:
>>>>>>> 
>>>>>>> If you run the app on a real iOS device, do you see your log messages
>>>> in the device log for it? Could it be Apple are now funneling simulator
>>>> logs into a pane in Xcode - like they do for devices, rather than have
>> them
>>>> go to the macOS system log?
>>>>>> 
>>>>>> Running the app on a real device doesn’t show the log either.
>>>>>> 
>>>>>> The organiser window of XCode has a specific “Open Console” button on
>>>> the pane for the device you selected.
>>>>>> 
>>>>>> It opens the console and it doesn’t contain the data I’m trying to
>>>> output from LiveCode. You need to tell it to stream the console data
>> from
>>>> the phone, it delivers a ton of garbage. Filtering by process or by the
>>>> string I’m sending — which is a fixed string at this point since I’m
>> just
>>>> trying to get the console working — yields no result whatsoever.
>>>>>> _______________________________________________
>>>>>> use-livecode mailing list
>>>>>> use-livecode at lists.runrev.com
>>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> use-livecode at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> 
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list