Giter Club home page Giter Club logo

Comments (6)

akashlal avatar akashlal commented on May 18, 2024

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.

akashlal avatar akashlal commented on May 18, 2024

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.

thepalbi avatar thepalbi commented on May 18, 2024

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.

akashlal avatar akashlal commented on May 18, 2024

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.

lovettchris avatar lovettchris commented on May 18, 2024

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.

thepalbi avatar thepalbi commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.