Standalone mode When you have built your application and linked it with the BOINC libraries, you can run it in 'standalone mode' (without a BOINC core client present). To do this, put instances of all input files in the same directory. (with the proper logical, not physical, names). The application should run and produce output files (also with their logical names). You can run the program under a debugger.

When you run an application in standalone mode, the BOINC API will recognize this and take it into account. A couple of things to note:

Using the anonymous platform mechanism

Once your application works in standalone mode you'll want to run it from the BOINC core client. This will exercise the various forms of interaction with the core client.

To get this process started, create a test project, add an application version and some work, then run the core client. It will download everything and run your application, which will possibly crash.

At this point you'll want to start experimenting with your application. It would be very tedious to create a new application version for each change. It's far easier to use BOINC's anonymous platform mechanism. To do this:

On Unix, it's possible to attach a debugger to a running process. Use 'ps' to find the process ID of your application, then something like

gdb exec_filename PID
to attach a debugger to it.

Getting and deciphering stack traces

Once your application is working on your own computers, you're ready to test it with outside computers (alpha testers initially). It may crash on some computers, e.g. because their software or hardware is different from yours. You'll get some information back in the stderr_txt field of the results. If your application called boinc_init_diagnostics() with the BOINC_DIAG_DUMPCALLSTACKENABLED flag set, and you included symbols, hopefully you'll get symbolic stack traces.

To decipher a Windows stack trace go here.

Otherwise, you should at least get numeric (hex) stack traces. You can decipher these by running a symbolic debugger with an unstripped version and typing in the hex addresses. See http://developer.apple.com/technotes/tn2004/tn2123.html#SECNOSYMBOLS "; page_tail(); ?>