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

Code pauses on every raise #20

Open
Nowaker opened this issue Feb 14, 2022 · 3 comments
Open

Code pauses on every raise #20

Nowaker opened this issue Feb 14, 2022 · 3 comments

Comments

@Nowaker
Copy link

Nowaker commented Feb 14, 2022

Your environment

  • vscode-ruby version: v0.28.1
  • Ruby version: 2.6.8p205
  • Ruby version manager (if any): bundler 1.17.3
  • VS Code version: 1.64.2
  • Operating System: Linux
  • Using language server? (eg useLanguageServer is true in your configuration?) yes

Expected behavior

Debugger pauses on breakpoints I pick only.

Actual behavior

Debugger pauses on any raise. I do not want that. I can continue but it breaks again on another raise. Which is endless.

image

Feature request

Like in Node.js - let me choose whether debugger should pause on exceptions, and which exceptions (caught / uncaught):

image

@castwide
Copy link
Owner

This might be possible, but it probably won't be trivial. Right now, it's an all-or-nothing deal because the debugger is unable to determine whether an exception will be rescued at the moment the exception gets raised. One possible solution is for the debugger itself to rescue the exception at a stack level above the application. I'll look into it.

@Nowaker
Copy link
Author

Nowaker commented Feb 14, 2022

@castwide If it's not trivial, I'd suggest a simple checkbox to pause on exceptions (current behavior) or not to pause (new behavior).

@castwide
Copy link
Owner

castwide commented Feb 14, 2022

That checkbox should already be available. If you don't see it, you might be using an older version of the readapt gem (current version is 1.4.3).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants