Comments (8)
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.
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.
Another approach would be to Start without Debugging (Ctrl + F5).
from fsharpkoans.
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.
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.
Closing as this is just the way things work, see above for how to change your exception settings
from fsharpkoans.
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.
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)
- TheBackwardPipeOperatorCanAlsoHelpWithGrouping - Add De-Emphasis Note?
- [FSharpKoans](https://github.com/ChrisMarinos/FSharpKoans/codespaces) not working HOT 1
- Can't build with newer version of .net HOT 1
- OrTheyMightNot AssertThrows vsdbg exception
- Discussion: possible move to fsprojects HOT 1
- .net core / .net standard support
- Getting started with F# and Ionide HOT 2
- VS 2017 'Could not load file or assembly 'FSharp.Core, Version=4.4.1.0 HOT 4
- Running Koans on OS X command line HOT 3
- Getting started in VS 2017 HOT 2
- typo in AboutPipelining.fs HOT 1
- .NET Core support HOT 1
- Incoherent error message in the 4th "koan" HOT 2
- Warnings relating to "Microsoft.DotNet.Watcher.Tools" when running Koans
- Idea: Extend Koans to Include Type Providers HOT 4
- Lightweight alternative to Ionide
- Question about Koan 14 - DotNetCollections HOT 3
- Koan 15 (stock data): Wrong assertion HOT 2
- Running NUnit Tests - Issue
- HowThePipeOperatorIsDefined HOT 5
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 fsharpkoans.