如何使用远程SSH VSCODE从管理员那里调试目标?
我想知道如何指示VSCODE在使用远程SSH扩展程序调试时,使用Admin Priveledge上的目标(Windows)启动调试可执行文件?
I'm wondering how to instruct vscode to launch debugging executable on target (Windows) with admin priveledge while debugging with remote SSH extension?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为没有简单的方法可以做到这一点,您只有您登录的帐户拥有的权限,因此Vscode无法使用比它更有权限启动调试会话。
您可以尝试使用
sudo
(或Windows等价)之类的内容开始与终端进行调试,以提高您的权限,然后将VSCODE调试器附加到已经运行的过程中,但是它是' t总是可能的。I don't think there is easy way to do that, you have only permissions that the account you login into have, so vscode can't launch debug session with more permissions then it has.
You could try to start debugging session with terminal using something like
sudo
(or windows equivalent) to elevate your permissions and then attach vscode debugger to already running process, but it isn't always possible.