本地 .net 调试器上的多普勒

发布于 2025-01-10 05:03:03 字数 204 浏览 2 评论 0原文

我们正在为安全环境变量实现多普勒,但为了测试我们在本地编写的代码,在发布之前,我们希望能够在本地设置中使用多普勒,因此在我们的调试器上。

我们的后端是 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 using
Doppler 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿嘿嘿 2025-01-17 05:03:03

我找到了一个问题的解决方案在代码中启动调试器,如果我启动多普勒运行我的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文