Jump to content
  • Advertisement
Sign in to follow this  
CrimsonGT

MSVC Debugger auto attach

This topic is 2901 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im messing with the "Debugging" section of the Configuration Properties in my project. I want to have it auto attach to my .exe when I click the "Start Debugging" icon.

The problem is that in my Post Build event I copy the .exe to a different directory where all of the necessary .dlls and content files are.

What should I be putting for Command, Command Arguements, and so on? Im assuming Attach is obviously a yes. Debugger type as Auto. Im assuming the Working Directory needs to be the directory I am copying the .exe file into?

Share this post


Link to post
Share on other sites
Advertisement
"Command" should be the path to the copied file, e.g. C:/SomeDir/Project.exe.
"Command Arguments" is any command line arguments you want to pass to the program (Or blank for none)
"Working Directory" shouldn't matter unless your app accesses files with relative paths and doesn't call SetCurrentDirectory().

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!