All examples are compilable (they are part of the source distribution) and take a common set of options. Use the "--help" option to each to get the options. By default all programs use the Bugzilla "landfill" server, but you can change this using the options.
All example programs also accept a "--trace" option, that will dump the communication with the server to std.out. Please note, that some issues, such as supplying a non-existant server, will not be indicated in the trace, but by exceptions.