{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2933","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2933/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2933/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2933/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/2933","id":224602349,"number":2933,"title":"Better assertion dialogs","user":{"login":"saul","id":64654,"avatar_url":"https://avatars0.githubusercontent.com/u/64654?v=3","gravatar_id":"","url":"https://api.github.com/users/saul","html_url":"https://github.com/saul","followers_url":"https://api.github.com/users/saul/followers","following_url":"https://api.github.com/users/saul/following{/other_user}","gists_url":"https://api.github.com/users/saul/gists{/gist_id}","starred_url":"https://api.github.com/users/saul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saul/subscriptions","organizations_url":"https://api.github.com/users/saul/orgs","repos_url":"https://api.github.com/users/saul/repos","events_url":"https://api.github.com/users/saul/events{/privacy}","received_events_url":"https://api.github.com/users/saul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-26T21:17:59Z","updated_at":"2017-04-27T06:59:57Z","closed_at":null,"body":"This is more of a discussion for better assertion dialogs, as I find the ones at the minute very difficult to read and have a poor user experience overall. How do people think that we can make the current one better?\r\n\r\nAs an experiment I've redesigned the assertion dialog to use the [Task Dialog](https://msdn.microsoft.com/en-us/library/windows/desktop/bb760441(v=vs.85).aspx) that is available in Windows Vista and later: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/64654/25457367/f51e0236-2acd-11e7-86b5-21d528ff37d3.png)\r\n\r\nThe above is a screenshot raised from the following code:\r\n\r\n```c#\r\nDebug.Assert(false, \"Example failure here\", \"Some extra information that I added\");\r\n```\r\n\r\nThe dialog works by disabling [DefaultTraceListener](https://msdn.microsoft.com/en-us/library/system.diagnostics.defaulttracelistener(v=vs.110).aspx)'s AssertUiEnabled property, and then registering its own trace listener that displays the improved assertion dialog.\r\n\r\nI'm not sure whether we would be happy to have this in the VF# repo, hence me raising an issue before I go through the effort of merging it in 😄 "},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/297629057","html_url":"https://github.com/Microsoft/visualfsharp/issues/2933#issuecomment-297629057","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2933","id":297629057,"user":{"login":"saul","id":64654,"avatar_url":"https://avatars0.githubusercontent.com/u/64654?v=3","gravatar_id":"","url":"https://api.github.com/users/saul","html_url":"https://github.com/saul","followers_url":"https://api.github.com/users/saul/followers","following_url":"https://api.github.com/users/saul/following{/other_user}","gists_url":"https://api.github.com/users/saul/gists{/gist_id}","starred_url":"https://api.github.com/users/saul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saul/subscriptions","organizations_url":"https://api.github.com/users/saul/orgs","repos_url":"https://api.github.com/users/saul/repos","events_url":"https://api.github.com/users/saul/events{/privacy}","received_events_url":"https://api.github.com/users/saul/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T06:59:56Z","updated_at":"2017-04-27T06:59:56Z","body":"It's easy enough to make the stack trace visible by default (y)"}}
{"actor":{"display_login":"saul"}}