Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to Enable/Disable [Start Debug Target] button from Toolbar in VS2012?

$
0
0

Hi Guys,

We found a new feature [Start Debug Target] button in VS2012, which looks similar as [Start/Continue].

We can control the [Start/Continue] button as enabled/disabled according to project's debug mode, but fail to access [Start Debug Target] button from Toolbar.

Since [Start Debug Target] is supposed to help debugging, we intend to access it like [Start/Continue].

We use IVsDebuggableProjectCfg.QueryDebugLaunch(uint flags, outint fCanLaunch) to access[Start/Continue] as following,

        public override int QueryDebugLaunch(uint flags, out int fCanLaunch)
        {
            CCITracing.TraceCall();
            fCanLaunch = this.IsDebugConfig ? 1 : 0;
            //fCanLaunch = 0;
            return VSConstants.S_OK;
        }

Can we find a way to control [Start Debug Target]? e.g. ,QueryDebugLaunch(), filter by VsCommands. in QueryStatus() ...

For more information, please refer to another link which I raisedearlier:

h t tp://social.msdn.microsoft.com/Forums/windows/en-US/20d174ba-c8ee-4887-87d8-c0c796cc45d9/how-to-enabledisable-start-debug-target-button-from-toolbar-in-vs2012

Please correct me if I'm wrong, thanks in advance!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>