Setting a Debugger Type in a Template

By default, templates use the project's default debugger. If you change the default debugger for a project, the templates also use the new default debugger.

You can edit a template's properties to use a specific debugger instead of the project's default debugger. Once you change the debugger for the template, the template's debugger does not change when the project or the project's default debugger changes.

You can also create custom templates and set debugger types for them. When a file is created from the custom template, the file is assigned the template's debugger instead of the project's default debugger.

To set a debugger type for a template:

  1. From the main window, choose Tools and choose Options.
  2. In the Options window, expand Source Creation and Management and expand Templates.
  3. Expand the appropriate template category node and select the template you want to change.
  4. Click the Execution tab.
  5. Click the value for the Debugger property and select a new default debugger from the combo box.

To create a custom template and assign it a debugger type:

  1. Create a file from a template and give the file the name you want to use for the template.
  2. In the Source Editor, make any changes you wish to the file's source code.
  3. Right-click the file in the Explorer and choose Properties.
  4. In the Properties window, click the Execution tab.
  5. Click the value for the Debugger property and select a debugger from the combo box.
  6. Right-click the file in the Explorer and choose Save as Template.
  7. In the Save as Template dialog box, select a template category and click OK.

    The new template is available in the template chooser.

See also
Specifying the Default Debugger
Defining a New Debugger Type

Legal Notices