c# - allowing to insert breakpoint in visual studio editor extension -
add syntax highlighting ielisonbuffer
i follow question , implement visual studio editor extension. got working fine: syntax highlight, completion...but cannot add breakpoint thought options there in right context menu (disabled)
is there else need enable feature editor?
well, breakpoint anything, you'll need implement debugger (via ad7 interfaces, etc.).
but actual breakpoint toggling working, need implement ivslanguagedebuginfo
interface (and optionally ivslanguagedebuginfo2
, ivslanguagedebuginfo3
more control). (i suggest on language info object that's implementing ivslanguageinfo
.) don't forget register implementation vs knows it.
validatebreakpointlocation()
called when user presses f9, etc., , in should set breakpoint span appropriate bounds of line (or portion of line depending on language, e.g. might in lambda or want highlight statement except trailing comments on line), return vsconstants.s_ok
.
Comments
Post a Comment