Visual Studio Developer Center >
Visual Studio Forums
>
Visual Studio Extensibility
>
Adding an item to the Debug menu next to Start Debugging
Adding an item to the Debug menu next to Start Debugging
- From my vsct file:
<Parent guid="guidSHLMainMenu" id="????"/>
What on earth is the group ID that Start Debugging is in? "IDG_VS_RUN_START" seems to be the obvious choice, but no such luck. If I put "IDG_VS_BUILD_SOLUTION" there, it shows where I expect on the Build menu, so I know everything is working except for that single evasive group id.
Thanks,
Sam :)
Answers
- You should set the Parent like this:<Parent guid="guidVSDebugGroup" id="IDG_EXECUTION"/>
Don't forget to reference VSDbgCmd.h and VsDebugGuids.h in your VSCT. Also, set the priority to greater than 0x0300 but less than 0x0500 to place the button immediately below the Start Without Debugging button.
All Replies
- Please try "IDG_VS_CTXT_PROJECT_DEBUG". Feel free to tell me if this does not help.
Thanks.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - Wow, I didn't think about that one. Yes, I suppose I do want it there too but it's not the place I was looking for. That Debug menu is in the context menu for a project, where the one I'm looking for is on the main menu when a solution is open. :)
- Does it works for you?
Thanks.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - No, I can get it to show all over the place except for on the Debug main menu, which is definitely where a command called "Start Script Debugging" belongs :o
- To troubleshoot this issue, we really need the source code and the detailed steps to reproduce the problem, so that we can investigate the issue locally. It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.
Thanks.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - You should set the Parent like this:<Parent guid="guidVSDebugGroup" id="IDG_EXECUTION"/>
Don't forget to reference VSDbgCmd.h and VsDebugGuids.h in your VSCT. Also, set the priority to greater than 0x0300 but less than 0x0500 to place the button immediately below the Start Without Debugging button. - Thanks man, that is exactly what I was looking for :)


