Get rid of "Build before Debug" MessageBox?

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
 
K

Ken Alverson

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
 
D

Doug Forster

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top