Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple breakpoints on the same line #83

Open
fenixjiang opened this issue Feb 23, 2022 · 4 comments
Open

Multiple breakpoints on the same line #83

fenixjiang opened this issue Feb 23, 2022 · 4 comments

Comments

@fenixjiang
Copy link

   var list = new List<int>() {1,2,3,4,5,6,7,8,9};
   var lst1 = list.Where(i => i > 1). Where(i => i< 6).ToList();
                               ^                  ^
                              bp1                bp2   

Set two breakpoint at same line.

Breakpoint 2 will not be hitted when breakpoint 1 is htted and continue.
Can breakpoints_line support columns?

@viewizard
Copy link
Member

Hello,
We don't plan support this feature. As I know, only VSCode protocol could provide column as optional parameter during breakpoint setup, but I don't know IDE that support this feature.

@viewizard
Copy link
Member

BTW, you could debug this could in case you minor alter it, for example:

var lst1 = list.Where(i => 
i > 1). Where(i => 
i< 6).ToList();

in this case if you set breakpoint for 2 and 3 lines, you will have breakpoints where you want.

@fenixjiang
Copy link
Author

@viewizard
Yes. it's. My example is just an example, there are many such examples in actual coding.

I found there is a function GetSequencePointCollection in ManagedPart.dll, and SequencePoint contain the line and column.
Can we distinguish different breakpoints on the same line by this?

@viewizard
Copy link
Member

Can we distinguish different breakpoints on the same line by this?

Sure. During step, IDE will even show you this (at least VSCode), since debugger return not only line but column too.
But we need much more changes for set-line-breakpoint code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants