Skip to content

debug.inlineValues does not appear to honour line/column information from scope #60150

Closed

Description

@DanTup

I'm trying to improve the display of debug.inlineVariables for Dart. I saw that would code provide Source and line/column information for a Scope to control where the inline values would appear, but it seems to be ignored in my testing.

I've hard-coded some values from line 6-11:

screen shot 2018-10-08 at 4 23 07 pm

But when I run, I still see the inline values outside of that range:

screen shot 2018-10-08 at 4 22 57 pm

Activity

  1. isidorn commented on Oct 8, 2018

    @isidorn

    As far as I remember we decided to ignore stack frame ranges for inline sources and hover since the stack frame ranges were quite incorrect for node.
    Here's a code pointer
    https://github.com/Microsoft/vscode/blob/e2027598992e56d7f6f6f26f804d53449ea1a2ee/src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts#L618

    PR that fixes this would be welcome.
    The PR would only change the behavior for inlineValues, not for debug hover (due to some other closed issues which I do not want to dig out)

  2. added
    feature-request
    debug
    on Oct 8, 2018
  3. DanTup commented on Oct 8, 2018

    @DanTup
    ContributorAuthor

    Isidor Nikolic (@isidorn) I don't entirely understand what you mean. The code you linked looks like it is filtering based on ranges, so what needs fixing?

    (I was under the impression that these fields were added specifically to support inline debugging so I'm wondering if I've misunderstood something, or implemented it incorrectly?)

    Also:

    we decided to ignore stack frame ranges for inline sources

    What do you mean by "inline sources"? These are files on disk - my mapToSource function is returning sources with paths - but it's possible I'm doing that wrong. If you think it should work for sources-on-disk lmk and I'll check I'm not doing something wrong in there.

  4. added
    *out-of-scope
    on Oct 8, 2019
  5. vscodebot commented on Oct 8, 2019

    @vscodebot

    This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

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

Metadata

Metadata

Labels

*out-of-scopedebugfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions