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

DebuggerVisualizers do not load when an F# project is debugged #bug #361

Open
snuup opened this issue Apr 16, 2024 · 2 comments
Open

DebuggerVisualizers do not load when an F# project is debugged #bug #361

snuup opened this issue Apr 16, 2024 · 2 comments
Assignees
Milestone

Comments

@snuup
Copy link

snuup commented Apr 16, 2024

After many days of trying to get a DebuggerVisualizer working for an F# project I tried the MemoryStreamDebuggerVisualizer in these samples and found that it does not work as well. Create an F# project, with .net8.0 or net48, it does not matter, and create a MemoryStream.

sample console app - reproduction

let ms = new System.IO.MemoryStream()
System.Diagnostics.Debugger.Break()

Open the DebugerVisualizer (which appears at least!) and you get a meaningless "Could not load the custom Visualizer" message. Why on earth does VS differ between a MemoryStream instantiated in a C# project from one instantiated in an F# project? Maybe something is linked to the project type "C# projects" inside VS, I dont know. I have no clue, please fix this, I urgently need a DebuggerVisualizer for F# projects,

sample from my run

image

@mitchcapper
Copy link

@snuup you can get a bit more detail. Before you click the view button when debugging attach a second VS instance to debug the "devenv.exe" that is in debug mode. Have just my code off, and break on all exceptions (minus timeout/cancel). When you hit view the 2nd VS instance should then break and give you a bit more detail about the exception. Assuming it does would love to hear what shows up after facing similar issues.

@tinaschrepfer tinaschrepfer added this to the Triage milestone May 8, 2024
@mpeyrotc mpeyrotc modified the milestones: Triage, Backlog May 16, 2024
@mpeyrotc
Copy link
Member

Hello @snuup! Thank you so much for contacting us. Custom Visualizers have never been supported for F# in Visual Studio, but as far as I have managed to tell there shouldn't be any reason to not support them. We are looking into it, and we'll try to determine the feasibility of adding support soon. I will let you know once F# Visualizers are enabled or why we could not do it for the time being.

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

4 participants