Vba MS Access调试监视值长度有限

Vba MS Access调试监视值长度有限,vba,ms-access,ms-access-2010,Vba,Ms Access,Ms Access 2010,我在MS Access 2010中工作,我正在尝试查看VBA代码中定义的变量,该变量已达到断点。watch窗口中的问题Watches窗口中的value文本框具有设置的大小,换句话说,如果值太长,则Watches窗口中的值将被截断 如何查看变量中的整个值?最好使用中间窗口。出于这个原因,我经常对SQL查询执行此操作 要显示这一点,请使用“查看-->中间窗口”(或Control+G) 然后使用如下语法: debug.print "This is a really long stringThis is

我在MS Access 2010中工作,我正在尝试查看VBA代码中定义的变量,该变量已达到断点。watch窗口中的问题Watches窗口中的value文本框具有设置的大小,换句话说,如果值太长,则Watches窗口中的值将被截断


如何查看变量中的整个值?

最好使用中间窗口。出于这个原因,我经常对SQL查询执行此操作

要显示这一点,请使用“查看-->中间窗口”(或Control+G)

然后使用如下语法:

debug.print "This is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long string"
您可以选择并复制/粘贴中间窗口,或滚动查看整个变量


请注意,中间窗口不会自动清除,但您可以选择所有内容并随时删除它。

您是否尝试过在即时窗口中使用
Debug.Print variable\u name\u此处
,或者在即时窗口中使用
?variablename
。对于不知道它是“即时窗口”的人,至少在2016年。谢谢你的提示!