File Exchange Pick of the Week

Our best user submissions

A great utility for debugging

Brett's Pick this week isdbmute and unmute, companion functions that facilitate code tweaking and debugging.

Those of you who read my colleagues' blogKen & Mike on the MATLAB Desktopmay have already been introduced to today's pick; it comes to us from fellow MathWorker and bloggerKen Orr(his first official submission--welcome to the File Exchange, Ken!).

Back in mid-July, Ken wrote a blog post onMuting Breakpoints. He described how he uses breakpoints to help him debug his code, and he wrote that he wanted the ability to quickly disable (and re-enable) those breaks. To solve the problem, Ken wrote, and showed the code for,dbmuteanddbunmute. I adopted the functions immediately--they've quickly become an integral part of my own code development workflow. I alsocommentedon that post, suggesting that these functions belong on the MATLAB Central File Exchange, and hinting about their destiny as "Picks of the Week." Good to my word, today's Pick honors Ken's submission.

One side note: Ken suggested in a final thought that it might be useful tocreate shortcutsto the functions:

I took it one step farther, and implemented asingleshortcut that toggles my breakpoints:

Anyone care toventure a guesshow I did that?




Published with MATLAB® 7.8

|
  • print
  • send email

Comments

To leave a comment, please clickhereto sign in to your MathWorks Account or create a new one.