简体   繁体   English

Resharper-调试静态方法

[英]Resharper - Debug static method

I have one project in a solution. 我有一个解决方案的项目。 Running that project is without any problem. 运行该项目没有任何问题。 I added a static method to test a database connection via Entity Framework. 我添加了一个静态方法来测试通过实体框架的数据库连接。 If i debug this static method with Resharper's debug, it crashes it cannot find a section with connection string in app.config. 如果我使用Resharper的调试工具调试此静态方法,它将崩溃,无法在app.config中找到带有连接字符串的部分。 ( Other projects accessing app.config also fails ) (其他访问app.config的项目也失败)

I tried to copy app.config to output. 我试图将app.config复制到输出。 I tried to set "Use separate AppDomain". 我试图设置“使用单独的AppDomain”。

What should i do ? 我该怎么办 ? Thanks ! 谢谢 !

Is this using ReSharper's Run Configurations ? 这是使用ReSharper的运行配置吗? If so, I'd say it sounds like a bug, where the host for running the static method doesn't set up the app.config correctly. 如果是这样,我想说这听起来像是个错误,运行静态方法的主机未正确设置app.config。 I'd suggest raising an issue . 我建议提出一个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM