1
1
Fork
You've already forked debugadapter
0

Debug prompt enhancements #22

Merged
dgkf merged 3 commits from dev/prompt into main 2024年07月11日 04:05:51 +02:00
dgkf commented 2024年07月11日 04:05:40 +02:00 (Migrated from github.com)
Copy link

A huge refactor of the browser()-based debugging.

Using browser() was convenient because breakpoints could be set directly in functions. However, R does modify those functions altering line numbers and possibly introducing other non-function code. It also doesn't include expression-level sys.call() information the same way debug() does.

So now I've fully swapped over to using debug(). This means I need to step through the function manually to stop at breakpoints, but it is much more faithful to the actual R code and gives line-level information.

One downside is that there's a huge amount of noise from base R debug output, but I think that's more manageable than the browser() downsides.

A huge refactor of the `browser()`-based debugging. Using `browser()` was convenient because breakpoints could be set directly in functions. However, R does modify those functions altering line numbers and possibly introducing other non-function code. It also doesn't include expression-level `sys.call()` information the same way `debug()` does. So now I've fully swapped over to using `debug()`. This means I need to step through the function manually to stop at breakpoints, but it is much more faithful to the actual R code and gives line-level information. One downside is that there's a huge amount of noise from base R debug output, but I think that's more manageable than the `browser()` downsides.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dgkf/debugadapter!22
Reference in a new issue
dgkf/debugadapter
No description provided.
Delete branch "dev/prompt"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?