Wednesday, January 21, 2009

Debug Cocoa with DTrace Guide & Embedding DTrace into Xcode Video

Debugging Cocoa with DTrace Guide

dbg_guide_tmb.png

Finally today I can finally reveal my Debugging Cocoa with DTrace guide to you. I had originally meant that this be a quick article on this site, but I kept adding and adding to it and finally by the time I knew what I had gotten myself into it was 40+ pages long. This guide isn't as comprehensive as I would like even at the length that it is. It covers many things regarding the nature of tracing Cocoa apps with DTrace and some various useful techniques. If you don't know DTrace this guide has links to this site and Suns sites that introduce you to DTrace. Again many thanks to the reviewers who helped me in recognizing the things that could be improved or the finer points I missed. Thanks for your help! You can download it from here (right click & save as): http://www.1729.us/cocoasamurai/Debugging%20Cocoa%20with%20DTrace.pdf Embedding DTrace in your Xcode/Cocoa Project Video In this video I explain how to embed DTrace probes into your application which you can then use to get a lot of useful information about the state of your application. Watch it below or you should be able to watch and download it at viddler: http://www.viddler.com/explore/Machx/videos/8/ Update Viddler isn't allowing downloads at the moment. I don't know what is happening here as the downloads usually work fast, but if they don't work in a while I'll try and find out what's going on with Viddler. All I know is downloading/embedding is set to everyone so Viddler should be allowing downloads. Update 2: Viddler Downloads are working now :)

6 comments:

Unknown said...

Great introduction! I found a few typos in your PDF, what's the proper way to report them to you?

Colin Wheeler said...

@Mattias just email me ( cocoasamurai [at] gmail.com ) and let me know. Thanks!

Jean-Denis said...

silly me, I can't find how to download the video from Viddler. I could not see a "download" button or link. I even registered and logged in there to be sure.

What did I miss?

Thanks,

JD

Jean-Denis said...

Even sillier me: I had not seen the tiny "download this" disk icon below the player

Nico said...

Really useful, especially the "create your own probes" part. Thanks :-)

DougPA said...

Thanks for taking the time to do this. Its a good introduction to DTrace in Xcode.

 
...