如何从Visual Studio 2019调试SQL [英] How to debug SQL from Visual Studio 2019

查看:58
本文介绍了如何从Visual Studio 2019调试SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从SSMS删除调试以来,我一直无法使Visual Studio成功调试SQL查询.

Since debugging was removed from SSMS I have been unable to get Visual Studio to successfully debug SQL queries.

我能够很好地连接到数据库,但是在执行调试器时出现两个错误:

I am able to connect to the database fine but when executing the debugger I get two errors:

  • 我确保2019年最新并且已安装SQL Server数据工具.
  • 我已启用TCP端口 4024-4025 (这些端口正确吗?是否需要其他端口?)
  • 我在某处读到远程服务器上需要Visual Studio.这是正确的吗?

推荐答案

尝试这些建议;

1)禁用工具下的使用托管兼容模式选项和启用本机编辑并继续" 选项-> 选项->> 调试-> 常规

1) disable Use Managed Compatibility Mode option and Enable native Edit and Continue option under Tools-->Options-->Debugging-->General

2)之后,重新启动两台计算机,然后重试.

2) After that, restart the two pcs and then try again.

这篇关于如何从Visual Studio 2019调试SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆