Visual Studio Developer Center > Visual Studio Forums > Visual Studio Extensibility > Adding an item to the Debug menu next to Start Debugging
Ask a questionAsk a question
 

AnswerAdding an item to the Debug menu next to Start Debugging

  • Tuesday, September 02, 2008 12:57 AMa280Z28 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    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

  • Wednesday, September 03, 2008 8:46 AMneilco Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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. 
    • Marked As Answer bya280Z28 Wednesday, September 03, 2008 2:36 PM
    • Edited byneilco Wednesday, September 03, 2008 8:48 AMCleanup
    •  

All Replies

  • Tuesday, September 02, 2008 8:19 AMFeng ChenModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Tuesday, September 02, 2008 4:11 PMa280Z28 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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. :)
  • Wednesday, September 03, 2008 3:56 AMFeng ChenModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Wednesday, September 03, 2008 6:24 AMa280Z28 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Wednesday, September 03, 2008 7:37 AMFeng ChenModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Wednesday, September 03, 2008 8:46 AMneilco Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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. 
    • Marked As Answer bya280Z28 Wednesday, September 03, 2008 2:36 PM
    • Edited byneilco Wednesday, September 03, 2008 8:48 AMCleanup
    •  
  • Wednesday, September 03, 2008 2:35 PMa280Z28 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks man, that is exactly what I was looking for :)
    • Marked As Answer bya280Z28 Wednesday, September 03, 2008 2:35 PM
    • Unmarked As Answer bya280Z28 Wednesday, September 03, 2008 2:36 PM
    •