We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56e4cb2 commit b761f44Copy full SHA for b761f44
Test/TraceDebugTest.cs
@@ -0,0 +1,21 @@
1
+using Autodesk.AutoCAD.Runtime;
2
+
3
+namespace Test;
4
5
+public class TraceDebugTest
6
+{
7
+ [CommandMethod("HelloTrace")]
8
+ public void HelloTrace()
9
+ {
10
+ try
11
12
+ throw new Exception(ErrorStatus.BadLinetypeScale);
13
+ }
14
+ catch (Exception ex)
15
16
+ var editor = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.Editor;
17
+ editor.WriteMessage(ex.ToString());
18
+ editor.WriteMessage(ex.StackTrace);
19
20
21
+}
0 commit comments