You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: