Get rid of "Build before Debug" MessageBox?

  • Thread starter Thread starter Axel Dahmen
  • Start date Start date
A

Axel Dahmen

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
 
Axel Dahmen said:
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
 
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
 
Back
Top