Is there a quicker way to copypaste C++ pointers from Visual Studio's Watch window into a conditional breakpoint?
Context: My pointer values change each time I restart my application, so I need to update the address in my conditional breakpoint.
If I have a watch for this
, copypasting it gives something like this:
+ this 0x000001287234a8c0 {mTick=2994 mTime=0.00000000 ...} AnimComponent *
When I right click on this
, there's a "Copy Value" option, but it copies that {}
block too:
0x000001287234a8c0 {mTick=2994 mTime=0.00000000 ...}
So my current process to copy my this
watch's pointer value:
- Click on
this
- Ctrl-C
- Edit conditional breakpoint
- Ctrl-v, remove the
{}
block, and add a == afterthis
I'm using C++, so I can't use the "Make Object ID" feature.