4.4 Attaching Microsoft Visual Studio to a simulator process

This section describes how to debug at the host level with Microsoft Visual Studio on Microsoft Windows and System Canvas.

To perform host-level debugging, attach Microsoft Visual Studio to a running Model Debugger process.


  1. Start System Canvas and load the project for your model.
  2. Select a Win64-Debug-VC20XX option in the Select Active Project Configuration menu, and build your model.
  3. Click the Debug button or press F5 to launch Model Debugger from System Canvas.
    Results: Model Debugger starts and the Configure Model Parameters dialog appears.
  4. Configure any appropriate parameters for the target and click OK.
    Results: The Select Targets dialog opens. The Arm® processor is selected by default.
  5. Select any additional targets to load. Click OK to close the dialog.
    Results: Model Debugger creates a separate window for each target.
  6. Load the applications to the targets that execute software:
    • For a single target, Model Debugger displays a dialog prompting for the application.

    • For more than one target, load the application to the targets in each debug view separately by selecting Load Application from the File menu.

  7. Start Microsoft Visual Studio.
  8. Select Tools > Attach to Process... . Select the ModelDebugger.exe process in the Attach to Process dialog. Click the Attach button.
    It might be necessary to close some dialogs to proceed.
    Results: Microsoft Visual Studio can now control the entire host level simulation.
Non-ConfidentialPDF file icon PDF version100965_1105_00_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.