Search in target is sometimes failing
-
@Ekopalypse Of course, my code works, until it breaks liked we talked about before
-
ok, then I would say it is time to debug/print some info about
target_start, target_end and position found.
Make a debug build, use OutputDebugStringW and tools like DebugView
to capture the output. Of course only, if you can’t run within Visual Studio. -
Actually, it doesn’t have to be a debug build, a release build should do it as well.
-
Okay, I’m trying that now. I am using visual studios and I have added in my code a OutputDebugStringW, now where would I find the values that it outputs when I use my plugin in notepad?
-
Did you start npp from within Visual Studio or did you attach (from Debug menu) npp to visual studio? If so, those should appear in
View->Output window. -
I think I have made a very obvious mistake. I forgot to specify my search flag as you mentioned in my other post. After switching it to Regexp, it seems to be working. I feel like that was very obvious and you have taken a lot of your time to help me, so thank you again for all your help.
If anything else happens, I’ll post again. Thanks.