Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以提升的权限运行控制台应用程序。使用 sudo mono myapp.exe 从命令行运行它可以工作,但是我看不到附加到进程进行调试的方法。有没有办法直接在 MonoDevelop 中做到这一点?
这是可能的,但很重要。
设置 MONODEVELOP_SDB_TEST 环境变量将导致新的“Run->Run With->Custom Soft Debugger”命令出现在 MD 中。您可以使用它来调用 Mono 调试器并将其连接到 MonoDevelop。
sudo mono --debugger-agent=${AgentArgs} yourapp.exe
以提升的权限运行整个 MonoDevelop?