AutoLispExt icon indicating copy to clipboard operation
AutoLispExt copied to clipboard

Stop infinite loop in AutoCAD

Open carlosmgilp opened this issue 1 year ago • 1 comments

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

carlosmgilp avatar Apr 04 '24 23:04 carlosmgilp

good idea, thanks!

Sen-real avatar Apr 07 '24 07:04 Sen-real