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

🐛 Respect skip_path when returning the backtrace in ServerDAP #749

Merged
merged 1 commit into from
Oct 28, 2022
Merged

🐛 Respect skip_path when returning the backtrace in ServerDAP #749

merged 1 commit into from
Oct 28, 2022

Conversation

marianosimone
Copy link
Contributor

This makes the DAP implementation respect skip_path, to only return frames that are not skipped.

See #748

lib/debug/server_dap.rb Outdated Show resolved Hide resolved
lib/debug/server_dap.rb Show resolved Hide resolved
@marianosimone
Copy link
Contributor Author

@ko1 there's a failing test, but I'm not sure it's related to my changes, as the same test failed in all my other PRs 😕


path = frame.realpath || frame.path
next if skip_path?(path)
break if (levels -= 1) < 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now needs to be after deciding to skip or not, or we'd return less frames that required

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

Successfully merging this pull request may close these issues.

3 participants