Hi,
I'm developing VS Package and adding button to existing DEBUG Toolbar using vsct file:
<Button guid="myGuid" id="myButtonId" priority="0x0001" type="Button">
<Parent id="IDG_DEBUG_TOOLBAR_EXECUTION" guid="guidVSDebugGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<Strings>
<CommandName>MyCommand</CommandName>
<ButtonText>MyCommand</ButtonText>
</Strings>
</Button>
I would like to dynamically change the state of the button, and only enable it when debugger is in run mode - something that existing buttons in DEBUG Toolbar can do out of the box.
From what I read I should be able to do this from BeforeQueryStatus callback, but the problem is that it is never called!
Is there any way to have BeforeQueryStatus called when debug mode changes?