Giter VIP home page Giter VIP logo

Comments (5)

stakx avatar stakx commented on August 22, 2024

@kendallb, you're asking at the wrong repository, Moq 4.x is over at moq/moq4. This here is the repo for Moq vNext.

from labs.

stakx avatar stakx commented on August 22, 2024

That said, you need to simply adjust your VS debugger settings under Tools > Options. Do either of those:

  • Enable SourceLink support. Then, instead of just complaining that there are no files under that path, the debugger will automatically fetch them from GitHub and allow you to step into it.

  • Enable Just My Code. This should make the debugger ignore Moq's debug symbols completely.

from labs.

kendallb avatar kendallb commented on August 22, 2024

I will ask the question on the moq4 area, but I already have Just My Code enabled. The core issue is the NuGet package is compiled in full debug mode from the way it is behaving. It is one thing to include PDB symbols but another to compile in full debug mode where it will try to find source files on your local system.

from labs.

kendallb avatar kendallb commented on August 22, 2024

Well I turned on source symbol support in VS2015 and it simply crashed trying to find the source files.

But at the end of the day IMHO this is wrong. Moq is a mocking engine so when I am debugging my unit tests the last thing I want to do when I step into something that Moq is hiding in front of as a proxy is to be suddenly debugging into the Moq code itself? I don't care about the Moq code at that point, I just want to step into the function on the other end of the proxy that is my test function.

This is how it used to work in Moq so IMHO this a step backwards.

from labs.

stakx avatar stakx commented on August 22, 2024

@kendallb - Please let's move this discussion to devlooped/moq#483.

from labs.

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.