Edit and Continue

Edit and Continue

sgrya1
Advocate Advocate
2,767 Views
9 Replies
Message 1 of 10

Edit and Continue

sgrya1
Advocate
Advocate

Can I please get some pro tips on how to get Edit and Continue working again.

Interested to know what professional developers use. A designated 32bit computer for coding?

And do you need certain AutoCAD, .NET and VS versions to get it working.

 

I've stared at the AutoCAD splash screen so many times now that I'm getting tired of it.

 

 

0 Likes
Accepted solutions (1)
2,768 Views
9 Replies
Replies (9)
Message 2 of 10

_gile
Consultant
Consultant

Hi

 

It works for me with VS2015 and AutoCAD 2016 or 2017 64 bits.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 10

FRFR1426
Collaborator
Collaborator

sgrya1 a écrit :

 

Interested to know what professional developers use. A designated 32bit computer for coding? 

 

 


A SSD drive.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 4 of 10

FRFR1426
Collaborator
Collaborator
Accepted solution

_gile a écrit :

Hi

 

It works for me with VS2015 and AutoCAD 2016 or 2017 64 bits.


It does not work with AutoCAD 2017 N52 (the first version released). You have to install the SP1: http://adndevblog.typepad.com/autocad/2016/07/autocad-2017-sp1-and-net-debugging.html or use AutoCAD 2017.1

 

And you have to disable the Managed Compatibility Mode in VS debugging options: https://blogs.msdn.microsoft.com/visualstudioalm/2013/10/16/switching-to-managed-compatibility-mode-...

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 5 of 10

dgorsman
Consultant
Consultant

One of the best things you can do is to change your development work process:

 

Do most of the development in the IDE. Ideally, most of the design work/program logic/etc. would be done before you write a single line of code.

Debug only to confirm operation is as designed.

Don't debug to figure out what method to call, or what properties are available.  Use the documentation and Intellisense.

Walk through the content logically at regular intervals to see if it makes sense.  If you have difficultly, chances are things need breaking into smaller pieces.

Create tests for important conditions, and implement try/catch for potentially critical problems, so you don't get kicked out mid-debug.

When you do find a problem during debugging don't exit, continue through and see what else needs tweaking.

Identifying exploits like loops, common methods, and objects early on is better than trying to refactor later.

 

 

Edit and Continue is nice, but don't let it become a crutch.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 6 of 10

_gile
Consultant
Consultant

I totally agree with @dgorsman.

I said E&C works for me (with the precisions provided by @FRFR1426), because i can get it work, but in fact I don't use it...



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 7 of 10

FRFR1426
Collaborator
Collaborator

I do not use it either, but it's by habit.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 8 of 10

sgrya1
Advocate
Advocate

I didn't know about the Service Pack. Thankyou

 

And a while back followed instructions from http://through-the-interface.typepad.com/through_the_interface/2013/11/debugging-autocad-using-visua... which suggested turning on “Use Managed Compatibility Mode” via Tools –> Options –> Debugging. and Enable native code debugging” from Project –> Properties –> Debug.

 

These settings were actually preventing Edit and Continue. I've disabled them and now it's working.

And thanks for the advice.

0 Likes
Message 9 of 10

ActivistInvestor
Mentor
Mentor
"I've stared at the AutoCAD splash screen so many times now that I'm getting tired of it."

You can add the /nologo command line switch to the debug target you specify in Visual Studio's debug settings. AutoCAD starts a lot faster w/o the splash screen.

Regarding the comments others have made about E&C, I beg to differ. The edit-build-test-debug cycle in AutoCAD development is especially tedious, distracting and disruptive to one's train of thought.

For less experienced programmers where mistakes are many, E&C is priceless, because it's common to have to find and fix each error before the next one can be found.
0 Likes
Message 10 of 10

Anonymous
Not applicable

@_gile what is windows version ,Win 10 or for support enable edit and continue

0 Likes