调试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.
推荐答案
经过更多研究和试验错误后,发现在64位计算机上调试时,SSIS包将忽略脚本任务中的断点。要修复它-
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
。
- Go to the Solution Explorer
- Right click your SSIS project node > Properties
- In Configuration Properties > Debugging > Debug Options > Set
Run64BitRunTime
toFalse
.
进行此更改后,断点的出现就像魔术一样。
After making this change, the breakpoints hit like magic.
这篇关于调试SSIS脚本任务-已启用断点,但未命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!