-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable breakpoints in 'with' augmentations for class types #608
Conversation
Hi @dedale, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
Mmm, it seems it works only once. If I disable the breakpoint, I cannot set it back again 😟 |
Thanks @dedale ! Have you debugged into it to see why subsequent breakpoint sets aren't working? |
No, I only tried in release. To debug, I will need two VS instances I guess? |
You should do a debug build of the repo, then launch an instance of VS which loads those bits. The EnableOpenSource project should allow you to do that. Attach your original instance to the debug instance, then run through the scenario and see if/how setting the second BP fails |
OK, I'll try this. |
Hi @dedale - I looked into this a bit today. Your change is valid, and indeed fixes a breakpoint-setting bug, but AFAICT it doesn't fix #551 at all 😄 The additional field you are capturing and walking corresponds to the copy expression in a record "copy and update" expression. So whereas one could not previously set a breakpoint here: type Rec = { X : int }
let copyRec (r1 : Rec) (r2 : Rec) n =
{
(if n % 2 = 0 then
r1 // <-- try to set BP here
else
r2)
with X = n
} With your change this now works. Nice job! My only suggestion would be to give this a better name: instead of |
Thanks @latkin for your help. I'll amend my commit tonight to update PR. On Thu, Sep 3, 2015, 04:30 Lincoln Atkinson notifications@github.com
|
@dedale just change the commit message, the commit is good! 👍 great fix |
I went ahead and made the requested changes before merging, thanks! |
Ok thanks On Thu, Sep 3, 2015, 18:57 Lincoln Atkinson notifications@github.com
|
Close #551
I could successfully validate my fix with @dsyme minimal repro code once my F# SDK has been clobbered ✌️
It seems the doc is wrong: