Esword
(James Esword)
July 8, 2015, 12:25am
1
For a shared file switched to a “nougat” project:
#if NOUGAT
// You can’t add breakpoints here.
// Visual Studio 2015 RC always says: This is not a valid location for a breakpoint.
#endif
I can work around this annoying bug by:
remove #if / #endif
add breakpoints
restore #if / #endif
ck
(Carlo Kok)
July 8, 2015, 6:32am
2
This should only happen if Nougat isn’t defined (if in a shared file, switch to the “nougat” project) or when the file isn’t part of this project, when do you get this?
Esword
(James Esword)
July 8, 2015, 7:16am
3
I’ve forgotten to mention that this happens in files of SharedProject and I’m sure the the file is already switched to the “nougat” project.
ck
(Carlo Kok)
July 8, 2015, 7:36am
4
hrmm oke that shouldn’t be possible. Do you have steps for me I can try?
Esword
(James Esword)
July 8, 2015, 7:43am
5
Try these steps in Visual Studio 2012 or 2015 RC:
Add some codes in your shared file which is already switched to a “nougat” project.
Check that you can add breakpoints to the codes, then cancel all breakpoints.
Use #if NOUGAT … #endif to wrap the codes.
( After this, you can see the codes are still highlighted instead of being faded)
Check if you can still add breakpoints to the codes. Here I failed.
I’m not sure if other people can reproduce the problem, please let me know.