Debugging on dragdrop

Rodney Tamblyn rodneytamblyn at paradise.net.nz
Sat Sep 6 07:47:01 EDT 2003


I don't know if it's been noted before, but the following is a very 
good idea.  I find debugging inside a dragdrop handler is liable to 
hang Revolution.


local sDrag

#not safe to debug
on dragDrop
#get whatever you are interested in out of dragdata & store in local 
var, eg
   put line 1 of dragData["files"] into sDrag
   if sDrag <> empty then
     send completeDrag to me in .5 seconds
   end if
end dragDrop

#safe to debug
on completeDrag
   breakpoint
  #add script actions here
  put "received:"&&sDrag
end completeDrag


Rodney


--
Rodney Tamblyn
44 Melville Street
Dunedin
New Zealand
+64 3 4778606
http://rodney.weblogs.com/




More information about the use-livecode mailing list