-
Notifications
You must be signed in to change notification settings - Fork 194
Development and Debugging Tools
Eric Watson edited this page May 7, 2014
·
4 revisions
There are lots of sample apps in the samples/ directory. To run through them efficiently, use the rake samples
commands:
rake --tasks
...
rake samples:bad # Run all non-working samples in random order
rake samples:bad_list # Create list of non-working samples
rake samples:good # Run all working samples in alphabetical order
rake samples:random # Run all working samples in random order
rake samples:subset[filename] # Run all samples listed in samples/filename
...
To help track down memory leaks from SWT objects, require the leak hunter in your app:
# my_leaky_app.rb
require 'shoes/swt/tooling/leak_hunter'
Shoes.app do
para "When you close this app, you'll get a report on SWT objects that may be leaking"
end
And run it:
bin/shoes path/to/my_leaky_app.rb
Now hunt down those leaks!