Skip to content

Navigating between reports of overlapping positions #86

Closed

Description

@Discookie

The following code segment is an example of overlapping positions.

main.cpp

#ifndef MAIN_H
#define MAIN_H

int foo(int param) {
  return param;
}

#endif

main.h

#include "main.h"

int main() {
  return 1 / foo(0);
}

List of reports for the code segment above

Here, 'Calling foo' and 'Returning from foo' have the exact same positions (where a 'Jump to repr. step' call goes) and ranges (what's displayed in the editor).
Because the extension has no memory which step it's supposed to be on, stepping into foo from step 2 is impossible because the extension believes it's on step 5.
#75 partially solves this by prioritizing the position when there are overlaps between different ranges, but the fix doesn't handle when multiple ranges have the same position.

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

Metadata

Metadata

Assignees

Labels

MEDIUMbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions