Skip to content

VS Code debugger blocks rendering local variables #2725

Open
@nirvdrum

Description

@nirvdrum

I'm trying to debug a Rails application with a bunch of middleware, using the GraalVM Tools for Java plugin for VS Code. I've set a breakpoint on the chained @app.call in a middleware's call method. The local variables take a long time to render (I've seen > 2 minutes). The slow variable loading is a performance issue that we'll need to resolve. But, it also appears to block any stepping in the debugger. I'm unable to step into or over a line or tell the debugger to run until it hits the next breakpoint until the local variables view finishes loading.

I've tried collapsing both the "Local" section under "Variables" and the "Variables" section entirely, which I hoped to signal to the debugger that this request can be interrupted. I think any stepping should cancel the current local variable fetch. I'm not sure if this is an issue with the tooling API or our implementation of it.

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

    Issue actions