Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop infinite loop in AutoCAD #242

Open
carlosmgilp opened this issue Apr 4, 2024 · 1 comment
Open

Stop infinite loop in AutoCAD #242

carlosmgilp opened this issue Apr 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@carlosmgilp
Copy link

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
@Sen-real
Copy link
Collaborator

Sen-real commented Apr 7, 2024

good idea, thanks!

@Sen-real Sen-real added the enhancement New feature or request label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants