Debug messages in C#

Top  Previous  Next

When you write a DLL for AutoCAD in C# you cannot create a console.


But you can use DbgView (Dbgview.exe) and use Debug.WriteLine ("popop") :



using System.Diagnostics; // for Debug.WriteLine


namespace AU.MySoftware





Alternatively you can use, in AutoCAD, to the text command interface:



using Autodesk.AutoCAD.EditorInput;


    Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;