Breakpoints on a Global

Phil Davis revdev at pdslabs.net
Tue Jan 24 15:13:27 EST 2012


I see. After reading Jacque's contribution also, maybe you want something like 
this in your script?

     if the keys of gMyGlobal = empty then breakpoint

Phil


On 1/24/12 9:30 AM, Bob Sneidar wrote:
> Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it.
>
> You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though.
>
> Bob
>
>
> On Jan 23, 2012, at 11:37 PM, Phil Davis wrote:
>
>> Hi Bob,
>>
>> Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable?
>>
>> Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?)
>>
>> Phil Davis
>>
>>
>> On 1/23/12 2:30 PM, Bob Sneidar wrote:
>>> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive.
>>>
>>> Bob
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>> -- 
>> Phil Davis
>>
>> PDS Labs
>> Professional Software Development
>> http://pdslabs.net
>>
>>
>> _______________________________________________
>> 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
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net





More information about the use-livecode mailing list