Thanks for the links they will be useful at some stage, it all came flooding back when I read them. To implement the marker I need to write a simulated debugger for the system so that I can implement the IDebugStackFrame2 interface.
According to the links I need to do some stuff like this before the interface can be used
Quote:1. The OnModuleLoad event sent to the SDM.
2. The OnLoadComplete event sent to the SDM.
3. The OnBreakpoint event sent to the SDM
The interface is only available as follows:-
Quote:This interface is obtained only when the program being debugged has been stopped at a breakpoint (either caused by a user-set breakpoint or an exception). From this interface, an expression context can be obtained to evaluate expressions, a list of registers can be returned, or the call stack can be obtained and examined.
So know I know why I gave up

I think I found a few open source debugger examples but it was going to be a time consuming task to wade through and hook everything back to the arduino project (let alone understand how it all works). Since then the vm debugger has matured which might make the task easier. This post has been a good reminder thanks and will be useful when I or ano (hint everyone) take a look at it.
Thanks for the note about the responses, sometimes it slows things down but at others it reminds me what is important. You can see why the web site and documentation is poor.
I need to do a doc that's next on my list