AutoLispExt
AutoLispExt copied to clipboard
Stop infinite loop in AutoCAD
Describe the bug I can't get out of an infinite loop in AutoCAD using VsCode. I have to close AutoCAD with the windows administrator.
To Reproduce I ran a function and inadvertently didn't set the condition for it to stop.
(defun c:xxx (/) (setq cont t) (while cont (if (and (not (vl-catch-all-error-p (setq pt (vl-catch-all-apply 'getpoint)))) (not (null pt))) (setq cont t))) (exit))
Expected behavior I want AutoCAD to return to normal when I stop debugging or restart debugging in VsCode.
Desktop
- OS: Windows 10
- AutoCAD 2025
- VsCode 1.88.0
- AutoCAD AutoLISP Extension 1.6.2
good idea, thanks!