473,779 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Debugging Not working as it should

Hi All,

My system:
WinXP Pro, VS.NET 2003, SQL Server Personal Edition.

I'm having problems with my old favourite demon, SQL Debugging from within
VS.NET. I have to say I've found this particular feature to be one of the
most useful and (sadly) unreliable/fragile features in VS.NET, it seems the
slightest thing will break it.

Anyway, I could step into stored proc's no problem up until a couple of days
ago. Now, when I set breakpoints in a Stored Proc, VS.NET does NOT hit
them. I have checked my project properties and yes, SQL Debugging IS
ticked.

If I just select a Stored Proc from the Server Explorer and choose to step
into it, I can do that without any problems, so VS is correctly attaching
its debugger in that scenario, it's just when I execute my VB.NET project
(compiled for Debug) which in turn calls into that Stored Proc, it totally
ignores the breakpoint.

When I look at the stored proc, the breakpoint I've set seems to constantly
have a question mark in the red-dot in the margin, implying that no symbols
are loaded for that document.

I actually did a full Repair using my VS.NET 2003 discs, but to no avail.
Are there any other settings for VB.NET that I need to check in order to
ensure SQL Debugging will work? The only thing I've installed in the past
few days was Quicktime Player, and I doubt that's going to affect SQL
debugging.

Can someone please give me some advice?

Thanks,
Alex Clark
Nov 20 '05 #1
2 3276
Hi All,

After many hours of Googling, I found some useful info and I've fixed the
problem. The way I did it was this:

EXEC SP_SDIDEBUG 'legacy_on'

And basically that did the trick. I have no idea why all of a sudden I need
to do this in order to get SQL Debugging to work, especially as I've
rebooted this machine many times and it's had no adverse effects before.
Anyway, just thought I'd post this up here in case anyone else might find it
useful.

Cheers,
Alex Clark
"Alex Clark" <al**@theclarkh ome.spamtin.net > wrote in message
news:OD******** ******@TK2MSFTN GP10.phx.gbl...
Hi All,

My system:
WinXP Pro, VS.NET 2003, SQL Server Personal Edition.

I'm having problems with my old favourite demon, SQL Debugging from within
VS.NET. I have to say I've found this particular feature to be one of the
most useful and (sadly) unreliable/fragile features in VS.NET, it seems the slightest thing will break it.

Anyway, I could step into stored proc's no problem up until a couple of days ago. Now, when I set breakpoints in a Stored Proc, VS.NET does NOT hit
them. I have checked my project properties and yes, SQL Debugging IS
ticked.

If I just select a Stored Proc from the Server Explorer and choose to step
into it, I can do that without any problems, so VS is correctly attaching
its debugger in that scenario, it's just when I execute my VB.NET project
(compiled for Debug) which in turn calls into that Stored Proc, it totally
ignores the breakpoint.

When I look at the stored proc, the breakpoint I've set seems to constantly have a question mark in the red-dot in the margin, implying that no symbols are loaded for that document.

I actually did a full Repair using my VS.NET 2003 discs, but to no avail.
Are there any other settings for VB.NET that I need to check in order to
ensure SQL Debugging will work? The only thing I've installed in the past
few days was Quicktime Player, and I doubt that's going to affect SQL
debugging.

Can someone please give me some advice?

Thanks,
Alex Clark

Nov 20 '05 #2
Hello Alex,

Thanks for sharing the experience in the community. I noticed that you
posted the question in vsnet.debuggin group also. I have replied the post
there. Please check it if you have time. Here is the link for your
reference:

http://groups.google.com/groups?hl=e...readm=ODolvT%2
4bDHA.2460%40TK 2MSFTNGP10.phx. gbl&rnum=1&prev =/groups%3Fhl%3De n%26lr%3D%26ie
%3DUTF-8%26oe%3DUTF-8%26q%3D%2BSQL% 2BDebugging%2BN ot%2Bworking%2B as%2Bit%2Bs
hould%26sa%3DN% 26tab%3Dwg

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Alex Clark" <al**@theclarkh ome.spamtin.net >
!References: <OD************ **@TK2MSFTNGP10 .phx.gbl>
!Subject: Re: SQL Debugging Not working as it should
!Date: Sun, 31 Aug 2003 21:43:37 +0100
!Lines: 62
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <OQ************ **@tk2msftngp13 .phx.gbl>
!Newsgroups:
microsoft.publi c.dotnet.langua ges.vb,microsof t.public.vsnet. debugging
!NNTP-Posting-Host: pc4-basf3-5-cust169.nott.ca ble.ntl.com 81.106.151.169
!Path:
cpmsftngxa06.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA06.phx. gbl!TK2MSFTNGXA 0
5.phx.gbl!TK2MS FTNGP08.phx.gbl !tk2msftngp13.p hx.gbl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.vsnet.debuggi ng:3215
microsoft.publi c.dotnet.langua ges.vb:132989
!X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
!
!Hi All,
!
!After many hours of Googling, I found some useful info and I've fixed the
!problem. The way I did it was this:
!
!EXEC SP_SDIDEBUG 'legacy_on'
!
!And basically that did the trick. I have no idea why all of a sudden I
need
!to do this in order to get SQL Debugging to work, especially as I've
!rebooted this machine many times and it's had no adverse effects before.
!Anyway, just thought I'd post this up here in case anyone else might find
it
!useful.
!
!Cheers,
!Alex Clark
!
!
!"Alex Clark" <al**@theclarkh ome.spamtin.net > wrote in message
!news:OD******* *******@TK2MSFT NGP10.phx.gbl.. .
!> Hi All,
!>
!> My system:
!> WinXP Pro, VS.NET 2003, SQL Server Personal Edition.
!>
!> I'm having problems with my old favourite demon, SQL Debugging from
within
!> VS.NET. I have to say I've found this particular feature to be one of
the
!> most useful and (sadly) unreliable/fragile features in VS.NET, it seems
!the
!> slightest thing will break it.
!>
!> Anyway, I could step into stored proc's no problem up until a couple of
!days
!> ago. Now, when I set breakpoints in a Stored Proc, VS.NET does NOT hit
!> them. I have checked my project properties and yes, SQL Debugging IS
!> ticked.
!>
!> If I just select a Stored Proc from the Server Explorer and choose to
step
!> into it, I can do that without any problems, so VS is correctly attaching
!> its debugger in that scenario, it's just when I execute my VB.NET project
!> (compiled for Debug) which in turn calls into that Stored Proc, it
totally
!> ignores the breakpoint.
!>
!> When I look at the stored proc, the breakpoint I've set seems to
!constantly
!> have a question mark in the red-dot in the margin, implying that no
!symbols
!> are loaded for that document.
!>
!> I actually did a full Repair using my VS.NET 2003 discs, but to no avail.
!> Are there any other settings for VB.NET that I need to check in order to
!> ensure SQL Debugging will work? The only thing I've installed in the
past
!> few days was Quicktime Player, and I doubt that's going to affect SQL
!> debugging.
!>
!> Can someone please give me some advice?
!>
!> Thanks,
!> Alex Clark
!>
!>
!
!
!

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3227
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
16
4223
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
6
2509
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I just go through each file/folder and right-click, selecting "Include in project". The IDE is nice in that it checks, verifies id tags, etc. What am wondering is whether it's possible to debug my ASP website using the MS Visual Studio.NET's...
0
1813
by: Ken Allen | last post by:
The MSDN documentation on remote debugging is a bit sparse, to say the least, and there is almost no information available on the 'best' way to configure this. I should note that my development system is Windows XP Pro and the test machine is Windows 2003, both running the latest upgrades; Visual Studio 2005 is installed on the development system and the .Net 2.0 framework is installed on the test system. The two systems do not have the...
5
7802
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
6
1564
by: bob | last post by:
hi, I have a question I should know the answer to. I've delivered a working set of c++ libraries/dlls that have been fully tested and validated. Now my problem is that somebody else has been furiously fixing memory leaks and what not in another DLL that is used by my own. I suddenly find myself in the situation where MY dll's are now crashing out and I'm fairly sure, that the fixes in the other DLL have hosed my stuff. I'm thinking...
0
7335
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
2
20850
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
7
4109
by: GaryDean | last post by:
(this was also posted on the MSDN WCF forum but the answers over there are not so good) I have a WCF Library hosted by IIS 6 and it all works fine. However I need to step through the code in the service. But when I hit F5 in VS2008 I get the following error message. . . A binding instance has already been associated to listen URI 'http://localhost:8877/VtaxDataService'. If two endpoints want to share the same ListenUri, they must also...
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.