this post was submitted on 27 Aug 2023
36 points (95.0% liked)

Programming

17507 readers
126 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

After a software update, VS2022 stopped working correctly. When I hit a break point, I don't get any local variables and their values, instead I get a "wait..." label that looks like a button, and also VS is growing in memory size until it crashes my Windows, or I either stop the debugging or VS itself.

So far I get the best results by using x64dbg, but it has it's own issues, namely that almost all guides only discuss its reverse engineering capabilities, and I need a development tool, so I don't have to rely on printing to the console as debugging, which has a lot of issues (leaving in the print commands, etc). I'm programming in D, but it should work with any other debugger made for C, and up until recently I used VS for that purpose.

all 9 comments
sorted by: hot top controversial new old
[–] [email protected] 17 points 1 year ago (1 children)

I would try to fix VS, uninstall it, check logs for errors, maybe ask support?

[–] [email protected] 3 points 1 year ago

A simple downgrade solved the issue, but regardless of that I'll try to look into some alternatives, especially since VS has licensing issues, which is fine for me as I use it for open source projects, but might not be fine for others who would use it for closed source projects, and I made my open source engine in a way it allows for be used in closed source projects.

[–] [email protected] 12 points 1 year ago

Try deleting all obj and bin folders in the repo and restart VS. Sometimes it gets stuck on an old project reference and can't clear out the cached files

[–] [email protected] 6 points 1 year ago

Honestly it sounds like there's an infinite loop in your code before it hits your breakpoint.

[–] [email protected] 3 points 1 year ago

It's not often talked about but WinDbg is a great tool: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/

[–] [email protected] 3 points 1 year ago

Remedybg ! Its paid but definitely worth it!

[–] [email protected] 2 points 1 year ago
[–] [email protected] 2 points 1 year ago

I'm unsure whether it'll work for D, but remedyDB is the best debugger I've ever used personally