• Welcome to the arena
Debug Robot

From Marvin's Arena

Revision as of 21:55, 18 May 2009 by SPech (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This tutorial will teach you how to use Visual Studio for debugging your robot.

Open your robots solution.

You need to create a startup project for the 2D or 3D Battle Engine.

  • Right-click on the Solution
  • Add -> Existing Project ...
  • Select the BattleEngine exe file

To start the robot the project properties needs to get changed.

  • Right-click on the newly added project
  • Select properties
  • Modify Command Arguments to: YourRobotsName.dll -notimeout -debug
  • Set the working directory to the BattleEngine exe path
  • OK
  • Right-click on the project again
  • Set as StartUp Project

Now you can run the plugin and Visual Studio will halt on all breakpoints you defined in the plugin.

Visual Studio properties