Debugging a breakpoint that does not work by using Visual Studio Debug Revit CAD cannot enter a breakpoint

Source: Internet
Author: User
Tags visual studio 2010

With the release of Visual Studio 2010, I believe many people have upgraded to Visual Studio 2010 as I did. So when you're using VS2010 to develop. NET applications in Autocad,map 3D or Revit, you'll probably also encounter problems with debugging breakpoints that don't always work. Kean and Jeremy recently wrote the article mentioned a few solutions, here for everyone to share, the original text please refer to hitting breakpoints in. NET Class Libraries while debugging with Visual Studio 2010 and debugging with Visual Studio and Rvtsamples

Update:

If you are using vs2010+ AutoCAD 2012 series product debugging to find the problem, please refer to the June Qilian another article:

breakpoints do not work when you develop AutoCAD. NET application debugging in Visual Studio 2010

Breakpoints do not work because Visual Studio 2010 starts the default debugger (v4.0) when debugging, but in order for our. NET applications to run on AutoCAD Map (or Revit), we need. NET 2.0 The framework (3.5 is also running on top of CLR 2.0).

Solution we have the following two scenarios:

Scenario 1

Edit the config file of the host program (Acad.exe.config, Revit.exe.config, etc.), this file is in the installation directory of AutoCAD. Add the following code to the </configuration> front:

<startup>

<supportedruntime version= "v2.0.50727"/>

</startup>

Scenario 2

Add the host EXE file as an existing project to your solution and set the debugger to v2.0

    • Right-click Solution Explorer, select Add->existing Project, browse to the startup file for AutoCAD Acad.exe

    • Right-click the project and set it as Startup Project set as Startup projects

    • Open the Project Properties dialog box property

    • Set Debugger Type to Managed v2.0

OK, after finishing the call, now set the breakpoint to follow the previous method of debugging.

Debugging a breakpoint that does not work by using Visual Studio Debug Revit CAD cannot enter a breakpoint

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.