Skip to content

Stop infinite loop in AutoCAD #242

Description

@carlosmgilp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions