Re: What makes everything on a card unresponsive?

2020-04-20 Thread Brian Milby via use-livecode
Look into the log command.  When you disable that, there is no performance 
impact and you don’t need to remove all of the individual calls.

Thanks,
Brian
On Apr 20, 2020, 5:04 PM -0400, scott--- via use-livecode 
, wrote:
> (requires the LC Business version)
>
> > On Apr 20, 2020, at 11:25 AM, Mark Talluto via use-livecode 
> >  wrote:
> >
> > —breakpoints
> > Sometimes the remote debugger works and sometimes it doesn’t. When it does, 
> > you breakpoint will fire in your app and show up in the LC IDE
>
>
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-20 Thread scott--- via use-livecode
(requires the LC Business version)

> On Apr 20, 2020, at 11:25 AM, Mark Talluto via use-livecode 
>  wrote:
> 
> —breakpoints
> Sometimes the remote debugger works and sometimes it doesn’t. When it does, 
> you breakpoint will fire in your app and show up in the LC IDE


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-20 Thread Graham Samuel via use-livecode
Thanks Mark - I am very glad you reminded me of the way puts go into the 
console window. I knew about that once (two or three  years ago, when I last 
tried to do a mobile app) and just forgot about it. I have kind of emerged, 
blinking, into the light after being in the dark for a long time.

I also do the trick of having a “debug” scrolling field on the most frequently 
seen card, and I have a tiny handler which accepts text and puts it into the 
next line of the field. When the app goes live, I can remove all the calls to 
the handler or simply arrange for the handler to have nothing in its script - 
the speed hit on the kind of app I’m interested is negligible, I find. And I 
also use ‘answe'r in an emergency, tho of course it disrupts the flow of the 
app.

I think the remote debugger doesn’t work with Indy, but i’ll check.

By the way I traced down the actual problem I had when I wrote my original mail 
in this conversation, using the methods you mention. It seems to be something 
to do with a widget that’s supposed to provide a native-appearance switch. I 
have isolated it and can continue to work in other ways for a time.

Thanks very much for the input.

Graham

> On 20 Apr 2020, at 20:25, Mark Talluto via use-livecode 
>  wrote:
> 
> On Apr 19, 2020, at 10:34 AM, Graham Samuel via use-livecode 
>  wrote:
>> 
>> Any ideas welcome, including a debugging strategy.
> 
> I use:
> 
> --quick a dirty value check
> answer “VariableName:” && tVariable
> 
> —did my code get this far
> answer “Handler name, label that may provide extra context”
> 
> —breakpoints
> Sometimes the remote debugger works and sometimes it doesn’t. When it does, 
> you breakpoint will fire in your app and show up in the LC IDE
> 
> —console
> You can open the console app on your Mac. On the left side of the console, 
> you will see your plugged in device. Click on that.
> Any empty puts like:  put “My code got this far”
> These will output to your console.
> 
> —debug field
> I put a field called “debug” on a card I am working on. I can output what I 
> want to that field when I want to check the state of things.
> 
> These are some tools I use to work on mobile. 
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io 
> nursenotes.net 
> canelasoftware.com 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-20 Thread Mark Talluto via use-livecode
On Apr 19, 2020, at 10:34 AM, Graham Samuel via use-livecode 
 wrote:
> 
> Any ideas welcome, including a debugging strategy.

I use:

--quick a dirty value check
 answer “VariableName:” && tVariable

—did my code get this far
answer “Handler name, label that may provide extra context”

—breakpoints
Sometimes the remote debugger works and sometimes it doesn’t. When it does, you 
breakpoint will fire in your app and show up in the LC IDE

—console
You can open the console app on your Mac. On the left side of the console, you 
will see your plugged in device. Click on that.
Any empty puts like:  put “My code got this far”
These will output to your console.

—debug field
I put a field called “debug” on a card I am working on. I can output what I 
want to that field when I want to check the state of things.

These are some tools I use to work on mobile. 

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Native Switch Button Widget [was: Re: What makes everything on a card unresponsive?]

2020-04-20 Thread Graham Samuel via use-livecode
My ideas were wrong. What I think now was that the whole of my app was halted 
by the existence of a Native Switch Button widget on the card I was trying to 
go to. I am not sure if I have time to prepare a proper bug report, but i found 
it by a process of elimination of all other objects on the card. Of course the 
widget might work in other circumstances. I will try to do a few more tests.

Has anyone any experience of using this widget successfully? Perhaps I  need to 
start another conversation about these Native-look widgets.

Graham

> On 19 Apr 2020, at 21:28, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
>> Am 19.04.2020 um 21:16 schrieb Graham Samuel via use-livecode 
>> :
>> 
>> Hard to extract, but I have a new idea - what if the message queue is being 
>> swamped? I have flimsy evidence that the simulator is generating 
>> locationChanged message (odd, because I don’t think it really has changed). 
>> Can I interrogate the queue?
> 
> not sure, but I don't think so.
> 
>> Just feeling my way.
> 
> What if you comment out the "locationchanged" handler?
> 
>> Graham
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-19 Thread Klaus major-k via use-livecode
Hi Graham,

> Am 19.04.2020 um 21:16 schrieb Graham Samuel via use-livecode 
> :
> 
> Hard to extract, but I have a new idea - what if the message queue is being 
> swamped? I have flimsy evidence that the simulator is generating 
> locationChanged message (odd, because I don’t think it really has changed). 
> Can I interrogate the queue?

not sure, but I don't think so.

> Just feeling my way.

What if you comment out the "locationchanged" handler?

> Graham

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-19 Thread Graham Samuel via use-livecode
Hard to extract, but I have a new idea - what if the message queue is being 
swamped? I have flimsy evidence that the simulator is generating 
locationChanged message (odd, because I don’t think it really has changed). Can 
I interrogate the queue?

Just feeling my way.

Graham

Sent from my iPhone

> On 19 Apr 2020, at 20:02, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
>> Am 19.04.2020 um 19:34 schrieb Graham Samuel via use-livecode 
>> :
>> 
>> Sorry to trouble this list yet again, but the main screen (in fact the the 
>> first card) in my mobile app has a “settings” graphic which acts as a button 
>> which to take the user to a ‘menu’ card. That card contains buttons and 
>> graphics which lead on (via very simple MouseUp handlers) to specialised 
>> menu actions, each on its own card. One can return to the main screen from 
>> each of these action cards.
>> 
>> When I run my app in the iPhone simulator, the activities on the main screen 
>> all work, with buttons, fields etc. When I click on the ‘go to menu card’ 
>> graphic, that always works. But when I get there, sometimes some of the menu 
>> buttons work, but sometimes the whole card becomes unresponsive, so that 
>> none of the buttons work, not even a ‘cancel’ button whose job is just to go 
>> back to the main screen. This didn’t used to happen, so I have messed up 
>> somehow. But my question is, what sort of action would make an entire card 
>> unresponsive? Maybe the app is stuck doing something I can’t see, but what 
>> could it be?
>> 
>> Any ideas welcome, including a debugging strategy.
>> 
>> Graham
> 
> any script? card, front, back, behavior?
> A loop that can get stuck?
> Accessing a file that is not there?
> 
> Maybe you can post your card script of the "menu card".
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: What makes everything on a card unresponsive?

2020-04-19 Thread Klaus major-k via use-livecode
Hi Graham,

> Am 19.04.2020 um 19:34 schrieb Graham Samuel via use-livecode 
> :
> 
> Sorry to trouble this list yet again, but the main screen (in fact the the 
> first card) in my mobile app has a “settings” graphic which acts as a button 
> which to take the user to a ‘menu’ card. That card contains buttons and 
> graphics which lead on (via very simple MouseUp handlers) to specialised menu 
> actions, each on its own card. One can return to the main screen from each of 
> these action cards.
> 
> When I run my app in the iPhone simulator, the activities on the main screen 
> all work, with buttons, fields etc. When I click on the ‘go to menu card’ 
> graphic, that always works. But when I get there, sometimes some of the menu 
> buttons work, but sometimes the whole card becomes unresponsive, so that none 
> of the buttons work, not even a ‘cancel’ button whose job is just to go back 
> to the main screen. This didn’t used to happen, so I have messed up somehow. 
> But my question is, what sort of action would make an entire card 
> unresponsive? Maybe the app is stuck doing something I can’t see, but what 
> could it be?
> 
> Any ideas welcome, including a debugging strategy.
> 
> Graham

any script? card, front, back, behavior?
A loop that can get stuck?
Accessing a file that is not there?

Maybe you can post your card script of the "menu card".


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode