-
Notifications
You must be signed in to change notification settings - Fork 119
Fix not hitting BPs on the first line of NTVS unit tests #369
Conversation
What is this unit test testing? Why is it broken now and not before? Details... |
CI? |
f7bd0ad
to
7b29c72
Compare
We have a non-deterministic test. I re-run them and they passed: |
I still don't understand what's going on exactly, why is this just an issue now, what changed? |
Is it related to the previous PR? Something else? Just include all the details, people in the future trying to understand why changes happened will thank you. |
NTVS unit tests use an "attach" command. We enabled break-on-load there to avoid some race conditions that we had because we cleared all the breakpoints and re-added them. This bug happens when you put a breakpoint on line 1 of a NTVS unit test. We are going to hit the break-on-load breakpoint and then we are going to see if there is an user breakpoint on line 1, to decide whether to resume or to pause and send this breakpoint to the client. That logic uses getScriptUrlFromId and it was not finding a user breakpoint when there was one, because the case wasn't matching. This fixes that issue. |
So it only breaks for "attach"? Or no bps on line 1 hit with break on load enabled? I'll merge it to unblock you |
It only breaks with bps on line 1 with with break on load enabled. |
We were comparing canonicalize vs normal case, so it wasn't matching and we didn't stop on 1,1 because we didn't realize there was a breakpoint there