The present invention provides a method and mechanism for debugging a
series of related events within a computer system. According to an
embodiment, when tracing a series of related events that span across a
plurality of threads, a token may be passed from one thread to another,
thereby allowing a link between the threads to be marked within the one
or more traces. The token may be passed via a messaging API, such as a
network layer API or a shared resource. With this aspect of the
invention, sufficient information will be provided within the one or more
traces to allow all the related trace data to be linked together.