Comments (6)
I just tried this on my windows machine and I get a prompt to attach the debugger. Perhaps mac requires a different API to launch (or enable) the debugger? @lovettchris any ideas?
from coyote.
You can try a workaround. You can go edit the source code of HelloWorldTasks and insert a breakpoint yourself at the beginning of the test (I usually do Debugger.Launch
). Then you can rebuild and try coyote replay
with the same schedule
file. There is no need to rerun coyote test
because the same schedule would still work for the test.
from coyote.
Thanks for answering @akashlal . Just tried what you suggested and is also not working. I asked in the dotnet
issues section to check if it's supported. dotnet/runtime#41029
from coyote.
Ok, the issue then is to figure out how to attach the debugger from dotnet on mac. If you find out the answer, let us know so we can implement the same in coyote.
from coyote.
Looks like from the runtime thread Debugger.Launch is not supported, so what you can do instead is "start" coyote replay in your debugger. I have not use VS on the Mac, but on Windows I can create any random console app and change the "Debug" tab to tell the debugger to launch something else instead, namely, dotnet.dll, with the command line arguments of coyote replay ./obj/Release/netcoreapp3.1/osx-x64/HelloWorldTasks.dll ./obj/Release/netcoreapp3.1/osx-x64/Output/HelloWorldTasks.dll/CoyoteOutput/HelloWorldTasks_0_1.schedule
and then you should be able to put a breakpoint in your early code and continue on debugging into the replay that way.
from coyote.
Thanks @lovettchris . The approach on launching coyote from VS worked.
In case anyone is interested:
1- Create a new Run Configuration
2- Execute the coyote binary, which is in /Users/thepalbi/.dotnet/tools/coyote
in MacOS
3- Add the arguments replay ./obj/Release/netcoreapp3.1/osx-x64/HelloWorldTasks.dll ./obj/Release/netcoreapp3.1/osx-x64/Output/HelloWorldTasks.dll/CoyoteOutput/HelloWorldTasks_0_1.schedule
4- Insert the breakpoints where needed
There's no support for Debugger.Launch
in either MacOS or Linux.
from coyote.
Related Issues (20)
- document supported/unsupported Task APIs and synchronization primitives
- Rewrite throws NullReferenceException HOT 11
- fix compatibility issue with VS Code coverage and assembly rewriting HOT 3
- include the test method name in the schedule file
- Why does coyote find no bugs in this code? HOT 1
- fix send event logs when actor runtime has terminated
- Question: About Coyote supporting .NET Core HOT 2
- coyote test failure: Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. HOT 5
- Deadlock when using SemaphoreSlim HOT 9
- Error: Please provide RewritingOptions.AssemblyPaths HOT 3
- Improve logging infrastructure when used with xUnit HOT 4
- disable periodic deadlock monitor when running in a debugger
- InvalidProgramException while trying coyote on my library. HOT 13
- IAsyncEnumerable with ToArrayAsync System.BadImageFormatException HOT 2
- race in updating coverage report
- Exception when trying to rewrite WPF .NET 6.0 application; unable to find PresentationCore HOT 5
- Potential bug with race condition HOT 4
- Deadlock if Interleave point inside a static constructor
- Unable to load one or more of the requested types
- Reschdule after AutoResetEvent.Set HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coyote.