.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

debugger is not hitting the breakpoint

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

I made a class library,all dlls of all the helping class library.for debugging it put the breakpoints at specifiv locations.It worked fine for 2 times but at third time it jumped the breakpoints, I dont know why????
I displayed the strings before and after the breakpoints to check that is it actualy going to the breakpoint,!! yes it is going to the breakpoint but not stopping on it. I did'nt made any changes to any settings.
On google I found something in tool-->Options-->general-->check the unhandaled execptions but I m using VS 2005 , I could not found any check box regarding unhandeled execptions or breakpoints.
I tryied these methods also 
1. Using precision guided missiles: Delete the .pdb files in your obj and bin folders. Recompile. Run.
2. Carpet bomb all .dlls: Delete and reload all the referenced .dlls (Like your class projects)
3. Release a WMD: delete the contents of the very obj and bin folders itself so that all  .pdbs and .dlls are annihilated. Reload the .dlls required and give it a shot.
4. VS.Net magic: Close VS.Net and restart. Rebuild. Run.

but all is fruitless
Please help me!!!!!!!!!!!!!!!!!!!!!!!!




View Complete Post


More Related Resource Links

error + debugger npt hitting VS 2010 / asp.net vb

  

Hi all:
I have created an application in asp.net 4.0 in VS 2010. I made about.aspx as startup page which doesnt have any code. I compiled the code and it was successful. When I run it, I get following error:
Value of type 'System.Collections.Generic.List(Of GBIP.GBIPCorporate.GBIPCorporateBLL.Corporate)' cannot be converted to 'System.Collections.Generic.List(Of GBIPCorporate.GBIPCorporateBLL.Corporate)'.
I have two classes under appcode , one in DAL f

CLR Debugging: Improve Your Understanding of .NET Internals by Building a Debugger for Managed Code

  

With the release of .NET, the Microsoft scripting strategy has evolved. Script engines can now compile or interpret code for the Microsoft common language runtime (CLR) instead of integrating debugging capabilities directly into apps through Active Scripting. With that change comes a new set of published services for including debugging functionality in a custom host application. You'll see how to use the debugging services published in the .NET Framework to create a full-featured CLR debugger that allows you to set breakpoints, view call stacks, browse variables, view processes, enumerate threads, and perform other important debugging tasks.

Mike Pellegrino

MSDN Magazine November 2002


Debugger not loading properly and exiting

  

I am attempting to debug my Visual Studio 2005 project. I have Internet explorer 8 and it's running on IIS.

When I hit the "debug" button, a new Internet Explorer browser window opens and my ASP VB .NET application loads normally. However, Visual studio returns back to regular editting mode and I can hit the "debug" button again. No break points hit but my web page still runs and loads normally.

The Output screen use to show Web.Server(exit 0) but now it doesn't show anything.

Any help would be greatly appreciated, I've been trying to find a solution for a while...

 


Just-In-Time Debugger error when opening SQL Server studio express

  
Hi,   I am new to these forums; hope I am posing in the correct forum   I have problem opening the SQL Server 2005 Management Studio Express. Getting the error below   'An unhandled win32 exception occurred in ssmsee.exe [5336]'   Searched in many forums but none of the suggestions resolved my issue..   I have re-installed .net 2.0, upgraded to 3.5 but still no luck either   Have re-installed SQL server management studio express again no luck   Deleted the shell folder from both documents and settings and in registry still have the same problem   Appreciated your suggestions to resolve this issue   Many thanks

How to display breakpoint and debug visual cues with custom activity designer based on WorkflowViewE

  
Hi,   I am developing custom activity designers based on "WorkflowViewElement" instead of "ActivityDesigner" in my xaml. It allows me to have greater control of the look and feel of the designer. However I noticed that with this approach, the breakpoint visual cue (Dark red solid circle that appears on the left side of the designer when you set breakpoint on the designer) is not visible. It works fine when you write your designed based on "ActivityDesigner". The same behavior happens to the debug visual cue when you debugging the WF. It appears as bright yellow rectangle surrounding the activity designer if you are based on "ActivityDesigner", but it is not available when your designer is based on"WorkflowViewElement". Any help is highly appreciated. Li

Viewing the Visual Tree in the Debugger

  
I recently posted an article to CodeProject which discusses a debugger visualizer.  It allows you to view the visual tree while debugging, inspect every property of any element in the tree, as well as view a snapshot image of any element.  I call it Woodstock, because it's like a scaled down version of Snoop.  Here's the article, if you're interested: http://www.codeproject.com/useritems/WoodstockForWPF.asp

Strange lockup in multithreaded application - Visual Studio debugger unable to break execution

  
Multithreaded C# application, Visual Studio 2008, Windows XP, Framework 3.5 SP1. This application is a little crawling utility to download pages from our website, extract some information and upload it into a database. It runs for a while, then somewhere between about 10 minutes and an hour in, it locks up totally, user interface and all. When I try to "break all" in the VS debugger, I get a message "cannot break execution". Now the confusing thing about this is that since the UI was locking up, I thought that some deadlock must be happening on the main UI thread. So I started stripping out any code and locks that were being acquired on that thread that might cause problems ... until there was nothing left. Even with the window simply spawning a bunch of worker threads on create, then totally forgetting about them and giving no reverse access, the lockup still happens, the UI still freezes and VS still can't break the execution.   There are 10 threads to do the crawling, and one each to do the processing and the uploading. The next thing I did was take out the uploading entirely to remove the possiblity of a deadlock in the SqlClient libraries. No difference. So now, the only things that could be really deadlocking the main thread that I can see are the centrally created HTTPWebRequest objects I'm using. WebRequest.create is supposedly thread safe

CalendarExtender Popup appearing when hitting "Enter" Key

  
Hello All,I have used a CalendarExtender in a page with textboxes. When I press the 'enter' key from another textbox,  calendar popup is appearing.I have also tried putting defaultbutton as my button id in form tag , but this is also not woking.<form id="myform" defaultbutton="searchButton"/>Following is the code which I am using.<td>                <asp:Label ID="Label1" runat="server" Text="Date Of Birth"  />                <asp:ImageButton ID="DOBImageButton" runat="server" ImageUrl="~/Images/Calendar.png" /> </td><td>                <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>                                                  <cc1:CalendarExtender ID="DOBCalendarExtender" TargetControlID="txtDOB" runat="server"&n

Debugging a Windows Service (VS 2008 / .NET 3.5) Using Debugger.Launch()

  
Hi, Everybody! I wrote a Windows Service using VS 2008 (.NET 3.5).  I wish to debug it.  I am able to build it and install it successfully.  When I start the service, the Visual Studio Just-In-Time Debugger (VS JIT Debugger) appears displaying the following message: An unhandled exception ("Launch for user") occurred in <WindowsService> [3392] (or [2560] or [5180] or ...).  I select the following Possible Debuggers <WindowsService> - Microsoft Visual Studio: Visual Studio 2008 and click the Yes button.  This is followed immediately by the following dialog box: Caption: Microsoft Visual Studio, Message: There is no source code available for the current location.  Clicking the Show Disassembly button results in displaying the disassembly.  The call stack shows mscorlib.dll!System.Diagnostics.Debugger.Launch() + 0x6a bytes.  The exception apparently occurs in Debugger.Launch();.  If I choose to continue, I am able to debug the Windows Service, stopping at the specified break points.  Why does the VS JIT Debugger appear in the first place?  How can I use Debugger.Launch(); without the VS JIT Debugger appearing?  See code below... protected override void OnStart(string[] args) { try { Debugger.Launch(); var t = new Thread(Start); t.IsBackground = true

Debugger endpoint configuration

  
When I started my current project, I was relatively new and followed the default WCF template closely as a result.  For a while I was running it in the Visual Studio debugger, which allowed me to develop the WCF service without having to worry about deployment.  As such, I never really had to deal with web.config.Then I got to the point where I tried deploying it, and things got messy.  Long story short, I tried hosting it in a windows service, ran into some problems with regards to endpoint configuration, and had to mess around with web.config quite a bit.  After some learning I decided it would be best to do a rollback to before I had even created the windows service, and start again with a fresh windows service.I've removed the windows service and its installer from my solution, and I decided to try and run the WCF service in the debugger.  However, this did not work, and I got an error page stating the following:  No protocol binding matches the given address 'http://0.0.0.0:54467/RUSServer.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details: System.InvalidOperationException: No protocol binding matches the given address 'h

VS2008 Debugger Loading ScriptResources Disables Step Menu

  
This is a Web Forms Website Project using several Ajax controls I set some break points, then F5, IE loads the .aspx page of the C# source I am trying to debug but then the Solution Explorer opens and adds an item and tree of items labeled Script Documents > Windows Internet Explorer > MyPage.aspx and about a dozen ScriptResource.axd files (including jquery files from a library loaded using absolute referencing which I have commented out in code to determine if jQuery library was causing this wierd behavior). The Debug > Step menu selections are all greyed out and pressing any Function keys does nothing. I also recall script files loaded into IE which "looked" like I was stepping into and over or whatever but that has not been intentionally repeatable. I am very puzzled and need some help understanding how and why this is occurring and what to do about it.

VWD 2010 Express (and all VS 2010 Express) "Unable to attach debugger."

  
I have a problem similar to the one described here: http://forums.asp.net/p/1200680/2103206.aspx - but that was about VS 2008 RTM, and also a different error message.When I go to debug anything using any of the VS 2010 Express apps (under WinXP SP3 x86 with .NET 2 SP1, 3.0 SP1, 3.5 SP1, and 4.0 installed), I get an error alert box showing:"Unable to attach. The debugger is not properly installed. Cannot debug the requested type of code. Run setup to install or repair the debugger."I did a Repair on VWD 2010 Express, then another on .NET 3.5 (which includes .NET 2.0 SP1 and .NET 3.0 SP1), to no avail.From reading in other forums, I read advice on running the Debugger Diagnostics, which I did. It seemed to show no errors (all Return Codes were eight zeroes each).I also saw advice on running "regsvr32.exe" on the "mscordbi.dll" file found in my .NET 2 Framework folder (%windir%\Microsoft.NET\Framework\v.2.0.50727), and on a file in the V7DEBUG folder, which I did. The latter worked fine, but the former gives this alert:"mscordbi.dll was loaded, but the DllRegisterServer entry point was not found. | This file cannot be registered."In the thread I linked to, greggm suggested using FileVer (found on Windows 2000 and up CD-ROMs by installing the Support Tools) on the contents of the V7DEBUG folder. I did it to both that and the .NET Framework 2 folder as well, and re-directe

Int properties showing up in debugger as HEX

  
For some reason, when reading from an Access database, values that are supposed to be INT are showing up as HEXdr["NumSent"]0x00000000dataSet.Tables[0].Rows.Count;0x000004badataSet.Tables[0].Rows.Count.ToString();"1210"Can't for the life of me figure this out.. please help!

Application hangs (100% cpu) outside debugger, but when debugging it runs ok.

  
Be prepared, this is a tricky one. One of my customers he is building a proof of concept using my software components. When running outside the debugger, the application will hang, using 100% CPU in the main thread. At this point attaching the debugger is unsuccessful. When running inside the debugger, the application runs fine. (.NET framework 3.5, Windows 7 Ultimate x86, running in VirtualBox (virtual environment)). Using Process Explorer I've tried to find some hints as to what's going on. Showing a callstack in PE at some arbitrary point when the app hangs is shown at the bottom of this post. The one line that caught my eye was this: halacpi.dll!HalClearSoftwareInterrupt+0x355 I googled around a bit, looks like a number of people ran into this, but nobody had found the true cause of/solution to this problem. One that came close was mentioning a patch for .NET framework 1.1, but there seems no information on later framework versions: http://support.microsoft.com/kb/904705 Some more details from my customer seem to point in the direction of GraphicsPath, which is used quite intensively and I know this class does a fair bit of switching to native land and back (PInvoke, also mentioned in the patch above). We really need to get this one solved, so let me know what to do to get some developer support on this one. Thanks, - Wout ntkrnlpa.exe!KeSetEvent+0x2a1 ntkrnlpa.e

Nobody Can Help With VS2008 Pro Debugger Disabling Step Menus?

  
Posted: http://forums.asp.net/t/1600590.aspx Repeated: This is a Web Forms Website Project using several Ajax controls I set some break points, then F5, IE loads the .aspx page of the C# source I am trying to debug but then the Solution Explorer opens and adds an item and tree of items labeled Script Documents > Windows Internet Explorer > MyPage.aspx and about a dozen ScriptResource.axd files (including jquery files from a library loaded using absolute referencing which I have commented out in code to determine if jQuery library was causing this wierd behavior). The Debug > Step menu selections are all greyed out and pressing any Function keys does nothing. I also recall script files loaded into IE which "looked" like I was stepping into and over or whatever but that has not been intentionally repeatable.  

Is it possible to determine at runtime when my site is running in the debugger?

  

Is it possible to determine at runtime when my site is running in the debugger?

I want to use one setting for production and another when I'm running in the debugger.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend