Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Debugging 2012 Expand / Collapse
Author
Message
Posted Friday, November 09, 2012 6:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, March 06, 2014 1:35 AM
Points: 178, Visits: 547
Hi,

I'm having trouble getting remote debugging working through SSMS 2012 and could use a bit of help.

Debugging on the remote machine (Svr1) works fine, but not from my workstation (ws1).

I am an administator on both machines and a sysadmin, as is the service account.

The breakpoint is a hollow red circle with warning triangle in the bottom right.
"The breakpoint will not currently be hit. Unable to bind at this time. Object containing the breakpoint not loaded."

Output : Auto-attach to process '[1556] [SQL] Svr1' on machine 'Svr1' succeeded.

The process ID in the output points to the correct instance.

Svr1 : Windows 2008 R2 Standard SP1. (Windows Firewall enabled)
WS1 : Windows 7 SP 1
SQL : 2012 evaluation on both machines. (http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspx)

Although I get many hits on this when searching, I have not been able to find any good documentation on what the problem is or a solution.

Btw, even if I disable the firewall I get the same results.

Any idea's?




For better, quicker answers on T-SQL questions, read Jeff Moden's suggestions.

"Million-to-one chances crop up nine times out of ten." ― Terry Pratchett, Mort
Post #1382988
Posted Tuesday, November 20, 2012 3:54 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, March 06, 2014 1:35 AM
Points: 178, Visits: 547
This is also not working for SQL 2008 R2 dbs.

Locally they do work but from my workstation they don't.

Even though all Windows Firewalls are disabled, I configured the exceptions anyway. Didn't help

Here are a bunch of links I found.
http://msdn.microsoft.com/en-us/library/cc646024.aspx
http://blogs.msdn.com/b/billramo/archive/2009/04/11/transact-sql-debugger-for-sql-server-2008-part-2.aspx
http://gaurangpatel.net/remote-debugging-in-sql-server-management-studio

I am sysadmin and Administrators member on the remote servers. (Also my own machine.)

Has anyone else set this up before?

Cheers.




For better, quicker answers on T-SQL questions, read Jeff Moden's suggestions.

"Million-to-one chances crop up nine times out of ten." ― Terry Pratchett, Mort
Post #1386805
Posted Tuesday, November 20, 2012 5:22 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, March 06, 2014 1:35 AM
Points: 178, Visits: 547
When adding the exception for SvcHost.exe, I get the following message.

Windows services have been restricted with rules that allow expected behavior only. Rules that specify host processes, such as svchost.exe, might not work as expected because they can conflict with Windows service-hardening rules.

Are you sure that you want to create a rule referencing this process?

Here's bit of info on Service-Hardening.
http://sourcedaddy.com/windows-7/understanding-windows-service-hardening.html





For better, quicker answers on T-SQL questions, read Jeff Moden's suggestions.

"Million-to-one chances crop up nine times out of ten." ― Terry Pratchett, Mort
Post #1386857
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse