Skip to content

Can't set breakpoint in core library files #2743

@nirvdrum

Description

@nirvdrum
Collaborator

Similar to oracle/graal#5125, core library files won't appear in the "Loaded Scripts" section in the VS Code debugger. You can step into Ruby core library from a user function, which will cause the core library to load in the editor view. But, unlike with standard libraries, setting a breakpoint in this editor will not work when restarting the debugger. As a result, it's rather difficult to debug anything related to the core library.

Activity

eregon

eregon commented on Sep 30, 2022

@eregon
Member

Are you using --core-load-path in this case or not?
If yes, it's most likely the same as oracle/graal#5125.

If not, then the Source doesn't actually have a file that VSCode can open, it's a file from inside truffleruby.jar, so then it sounds like a VSCode issue.

eregon

eregon commented on Mar 21, 2023

@eregon
Member

With --core-load-path it worked fine when we tried recently, although one needs to first find such file and they are not all in Loaded Scripts.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nirvdrum@eregon

        Issue actions

          Can't set breakpoint in core library files · Issue #2743 · oracle/truffleruby