Giter VIP home page Giter VIP logo

Comments (8)

bugQ avatar bugQ commented on June 21, 2024 2

actually, this frustration runs so deep that I have re-implemented the AssertThrows helper:

let AssertThrows<'a when 'a :> exn> action = try action() with e -> Assert.IsInstanceOf<'a>(e)

doing so ensures that the closure is run inside "user code". I'm not necessarily suggesting that this change be made here, but at least wanted to share this as an option for others.

from fsharpkoans.

ChrisMarinos avatar ChrisMarinos commented on June 21, 2024 1

Yeah, I ran into this problem once before during a workshop with the koans. I don't think we found a good workaround for it at the time, but doing some googling, it appears that this may be a workaround.

http://msdn.microsoft.com/en-us/library/038tzxdw.aspx

I can't verify that it works right now, but if it does, I'm happy to update the readme with the info.

from fsharpkoans.

M0ns1gn0r avatar M0ns1gn0r commented on June 21, 2024 1

Another approach would be to Start without Debugging (Ctrl + F5).

from fsharpkoans.

GingerGeek avatar GingerGeek commented on June 21, 2024

Hi, I was the guy who couldn't get it to work, I just can't seem to find that Debug -> Exceptions thing even in Expert Settings Mode.

from fsharpkoans.

CalMlynarczyk avatar CalMlynarczyk commented on June 21, 2024

If I remember correctly, they removed the ability to filter exception types in the express editions (starting with VS 2012). See this for possible fixes if that isn't the case.

You can also navigate to the application output directory (ex. FSharpKoans/bin/Debug) and run FSharpKoans.exe outside of Visual Studio.

from fsharpkoans.

dsyme avatar dsyme commented on June 21, 2024

Closing as this is just the way things work, see above for how to change your exception settings

from fsharpkoans.

bugQ avatar bugQ commented on June 21, 2024

this is so unsatisfactory !!! ugh

just so others can see, the most current fix is to uncheck "Enable Just My Code" in Debugging options, but this is a global setting and is usually only recommended to turn off when debugging your dependencies. also, similarly to running without debugging, it doesn't break on __ "holes", requiring you to read the console output to find the error. altogether nonideal.

i know this is a problem with NUnit's interaction with Visual Studio, not with this repo, so excuse my frustration.

from fsharpkoans.

ChrisMarinos avatar ChrisMarinos commented on June 21, 2024

Sorry about that. As you said, this is just a result of the way the NUnit exception handling works with VS, so there isn't much that we can do. Hopefully you still learn something from the koans despite the inconvenience of referencing the console output. :-)

from fsharpkoans.

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.