Wednesday, December 12, 2012

Visual Studio Quick Tips

Very quick Visual Studio tips:

  • To put a breakpoint into any class methods, use Class::* as the breakpoint function
Watch Window
  • If you have your own type defined in autoexp.dat, you can use the ",!" modifier to skip it
  • $ENV=0 dumps the environment variables
  • $CMDLINE=0 dumps the command line
  • If you want a quick way to know the size/offset of your classes, add this compile flag to your cpp file (right-click on cpp file->Properties->Configuration Properties->C/C++->Command Line->Additional Options): /d1reportAllClassLayout

No comments: