Debugger service target locking #3071
emad-elsaid
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I don't think we want to add more API to debugger for external use only, because we don't maintain backwards compatibility on the debugger API. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While using the Debugger service struct. I was able to access the target using
Target()
but as it was pointed out to me here I shouldn't be using the target without locking it.The thing is if I do use
LockTarget()
it will block until the target is unlocked. and the mutex is not exported so I can't usemutex.TryLock
.What I need to achieve is to lock the target, get some information or execute methods on it, unlock. IF the target is unlocked. and if it's now busy I want to take an alternative route, where I return cached data or show a message that the action is not allowed now until the target unlocked/halts.
Are we open to add
Debugger.TryLockTarget() bool
to the Debugger struct? it seems like a small addition I'm welling to work on if we're open for it.Beta Was this translation helpful? Give feedback.
All reactions