Autodesk-AutoCAD / AutoLispExt

Visual Studio Code Extension for AutoCAD® AutoLISP
https://marketplace.visualstudio.com/items?itemName=Autodesk.autolispext
Apache License 2.0
83 stars 29 forks source link

Stop infinite loop in AutoCAD #242

Open carlosmgilp opened 6 months ago

carlosmgilp commented 6 months ago

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

Sen-real commented 6 months ago

good idea, thanks!