-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add support for VcxprojUserFile.LocalDebuggerAttach #164
Conversation
In my project I hot reload DLL plugins, and for this reason I want to attach my debugger to a running executable instead of launching it
Heya! Thanks for the PR! From a quick look it seems that this property expects a boolean, right? |
Hey. Thanks for the feedback and yes, you are right, it is a bool. The reason I decided to treat it like a string is that the line is optional and I couldn't find anything "similar" to the RemoveLineTag for strings, but for bools. What do you think about this? |
I don't think we have anything of the sort, but I think you could make a getter that would return the bool as the string we want and use that from the template, something like public bool LocalDebuggerAttach = false;
internal string LocalDebuggerAttachToString => LocalDebuggerAttach ? "true" : RemoveLineTag; And in the template use Worth a shot :) |
That looks like a good approach! One small thing: Personally, I would prefer to just make "LocalDebuggerAttachString" public so I don't have to change the resolver (it doesn't have a setter, so there is no risk). |
Sounds good, I didn't remember what was browsed by the resolver ;) |
Merged, thanks! |
Thank you! |
In my project I hot reload DLL plugins, and for this reason I want to attach my debugger to a running executable instead of launching it.
The regression tests succeeded, I don't know if I have to provide anything else.
Thank you!