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

Couldn't get the current stack frame #339

Open
FireController1847 opened this issue Jul 6, 2024 · 0 comments
Open

Couldn't get the current stack frame #339

FireController1847 opened this issue Jul 6, 2024 · 0 comments

Comments

@FireController1847
Copy link

FireController1847 commented Jul 6, 2024

Description

I'm trying to set a breakpoint on a Unity game (Cities: Skylines II) which utilizes the ECS system & Burst compiler but it runs on Mono. I have disabled the Burst compiler system using the command-line flag, so I am able to set and use functioning breakpoints in the Unity Jobs. dnSpy works great the majority of the time, however I seem to be consistently running into issues when I set a conditional breakpoint which utilizes the method parameters. I can even set the item via "entity.Index = 98839," however the second I put in "entity.Index == 98839" or try and fetch the value of entity.Index like so: "(entity.Index)", it errors with "Couldn't get the current stack frame." What I find particularly more interesting about this is that I can put the same expression as a log message like so: {entity.Index == 98839}, and it outputs perfectly fine. I'm at a loss as to whether or not this is a dnSpy bug or I'm just doing something seriously wrong. This conditional check also works fine in the watch menu through multiple iterations of the code. Any advice on how to proceed would be extremely helpful.

EDIT: After further experimentation, I'm finding that it's an issue once the breakpoint is hit. It seems the conditional check is working just fine. I wonder why the error would only occur when using a conditional, though, because unconditioned breakpoints work just fine.

I've tried it on the latest CI build, still no luck. Using dnSpy v6.5.1. I'm not sure what information I can provide to you so please let me know to help with debugging or resolving the issue.

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

1 participant