Dela via


SQL Debugging: Unable to Start SQL Debug Session

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic does not apply Topic does not apply

Standard

Topic does not apply Topic does not apply Topic does not apply Topic does not apply

Pro and Team

Topic applies Topic applies Topic applies Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

When you try to start SQL debugging, you might get the following error message:

Unable to start SQL debug session. Ensure sqldbreg2.exe and proxy/stub DLL sqldbg.dll are registered on this machine.

This message can result from an access permissions problem on NTFS partitions. The SQLDebugger user account must have Read and Execute permissions for the debugger components in Program Files\Common Files\Microsoft Shared\SQL Debugging and the Windows System32 directory. Otherwise, this error message results.

Add SQLDebugger to the Access Control List for those directories and make sure Read and Execute are selected.

See Also

Reference

SQL Debugging Setup Errors and Troubleshooting

Other Resources

Setting Up SQL Debugging

Debug Settings and Preparation