dotnet / dotnet/vscode-csharp

stack overflow when reading object tooltips causes debug session to terminate

Open
#4,365 1 comment 0 reactions 0 assignees View on GitHub
Debugger Feature Request OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

my intention was to debug code which causes infinity recursion ;)
unfortunatelly it was in object ToString override;

instead i couldn't debug that code - vscode or omnisharp also went into that routine causes debug session to terminate:

how to reproduce:
```
class infinity {

public override string ToString()
{
return this.ToString();
}
}
class Program {
static void Main(string[] args) {

var inf = new infinity();
/* put breakpoint below, start debug session and move mouse cursor over inf object*/
Console.WriteLine(inf.ToString());
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.