I'd like to share a technique I've just perfected that allows me to create AVRStudio4 breakpoints in my 'C' source code.
Why is this a helpful technique? Some times your code has a lot of self-checking logic in it and you'd like the debugger to automatically break on an error, ready to be debugged. also, sometimes breakpoints can be lost AVRStudio4 when code changes, requiring you to re-enter all that you need.
Put in your macros file or global.h (wherever you have CLI() and SEI() defined:
#define BREAK() asm (".word 0x9598")
To insert a breakpoint in your sourcedode:
unfortunately AVRStudio4 does not mark this breakpoint with a red dot.
Enjoy! Hope his techmique is usefull to you!