调试 SSIS 脚本任务 - 断点已启用但未命中 [英] Debugging SSIS Script task - Breakpoint is enabled but it does not hit
问题描述
我正在处理 SSIS 包.该包有一个脚本(C# 语言)任务.我需要调试脚本任务.我设置了断点.脚本编辑器 (Visual Studio) 中的脚本和 SSIS 包编辑器中的任务都以红色显示断点 - 表示断点已启用.但是,当我调试包时,断点没有命中.
I am working on an SSIS package. The package has a script (C# language) task. I need to debug the script task. I set the break point. The script in script editor (Visual Studio) and the task in SSIS package editor, both, show break point in red color - means the break point is enabled. However, when I debug the package the break point does not hit.
断点没有条件,所以我希望每次包运行时它都会命中.
The break point has no conditions on it, so I expect it to hit every time the package runs.
我在 Windows 2003 R2 64 位 SP2 上使用 Visual Studio 2008.
I am using Visual Studio 2008 on Windows 2003 R2 64-bit SP2.
推荐答案
经过更多的研究和试错,发现 SSIS 包在 64 位机器上调试时忽略了 Script Task 中的断点.修复它 -
After more research and trial-error, found that the SSIS package ignores the breakpoints in a Script Task when debugging on a 64-bit machine. To fix it -
- 转到解决方案资源管理器
- 右键单击您的 SSIS 项目节点 > 属性
- 在配置属性>调试>调试选项>将
Run64BitRunTime
设置为False
.
进行此更改后,断点像魔术一样命中.
After making this change, the breakpoints hit like magic.
这篇关于调试 SSIS 脚本任务 - 断点已启用但未命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!