本地 .net 调试器上的多普勒
我们正在为安全环境变量实现多普勒,但为了测试我们在本地编写的代码,在发布之前,我们希望能够在本地设置中使用多普勒,因此在我们的调试器上。
我们的后端是 i .net 的,因此它使用 IIS Express 运行,同时我们可以使用以下命令在本地运行程序 多普勒运行 dotnet run
我们无法将调试器附加到该进程(或者,我们找不到可以附加调试器的进程)
We are implementing Doppler for secure environment variables, but in order to test code we make locally, before we release it, we want to be able to use Doppler in a local setting, so on our debugger.
Our backend is made i .net, so it runs with IIS Express, and while we can run the program local usingDoppler run dotnet run
we can't attach a debugger to that process (or well, we cant find a process where attaching the debugger works)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个问题的解决方案在代码中启动调试器,如果我启动多普勒运行我的dotnet代码在 cmd 窗口中,并保持我的项目打开,如果插入链接中的代码,我可以选择它作为可用的调试器。
编辑:我使用
#if !RELEASE
来确保代码不会在发布版本上运行。I found a solution with issue Start Debugger in Code, where if I start Doppler running my dotnet code in a cmd window, and keep my project open, I can choose it as an available debugger, if the code from the link is inserted.
Edit: I use
#if !RELEASE
to ensure the code doesn't run on release versions.