Hi,
when applying changes to the code and hitting [F5] to debug, a MessageBox
pops up asking me if I want to build before debugging. Of course I want,
that's why I've changed the code... Is there a simple way to suppress this
MessageBox in Studio 7 and to start a Build-Debug sequence immediately?
TIA,
Axel Dahmen
Ken Alverson - 16 Sep 2003 15:37 GMT
> when applying changes to the code and hitting [F5] to debug, a MessageBox
> pops up asking me if I want to build before debugging. Of course I want,
> that's why I've changed the code... Is there a simple way to suppress this
> MessageBox in Studio 7 and to start a Build-Debug sequence immediately?
Not exactly a direct answer to your question, but I'm in the habit of hitting
shift-F5 to stop debugging and ctrl-shift-b to build before I hit F5 to debug.
That also gets around the build-failed-do-you-still-want-to-debug message.
Ken
Doug Forster - 17 Sep 2003 03:17 GMT
Hi Axel,
Its simple - you need a macro. Try making one like this:
Sub SaveBuildAndDebug()
DTE.ExecuteCommand("File.SaveAll")
DTE.Solution.SolutionBuild.Build(True)
DTE.Debugger.Go(True)
End Sub
Then make a custom keyboard scheme and attach the F5 key to your new macro.
You can do darned near anything with macros!
Cheers
Doug Forster
> Hi,
>
[quoted text clipped - 5 lines]
> TIA,
> Axel Dahmen