IDE :: Debugging - Breakpoint Jumps To Another Line?
Sep 21, 2011
Using VS 2010 Pro SP1 - XP Pro SP3 I set a breakpoint with F9 and the line turns Red. When I press F5 to start debugging, the Red Breakpoint jumps to another line a few lines away.
View 8 Replies
ADVERTISEMENT
Jun 4, 2009
When I try to debug my program, it sometimes catches the first breakpoint, but as I step into each step, it just skips and runs the program. Is there some kind of setting that I can make in vb 2008 express that will allow me to see my code step-by-step?
View 9 Replies
Jul 30, 2011
In my code I had coded Mousewheel event for Picturebox. Then later i observed there was a bug in the part of the code which needed o be corrected.Then i corrected the code and tried to rerun the code. But the same bug still persisted. Later I tried applying breakpoint at the point of Mousewheel event operation.To my surprise the code execution never stooped at the Breakepoint.
What even worse happened was, though I comment the whole mousewheel event code of picturebox, the operation still executes on mouse wheel rotation as if it was what hard coded.
View 3 Replies
Sep 4, 2009
I'm wondering if anyone else has encountered this in visual studio 2008. I'm writing an asp.net app and when I run through debug it's jumping all over the place. It skips certain lines, at least it appears to, then it jumps to the bottom of the page and repeats the same line a few times then jumps to a separate sub I have in there. The weird thing, besides its behavior, is that it's not grabbing a piece of information that exists in one column but is grabbing another one. So anyone else encountered this? What's the fix.
To give a more detailed example it did this on the last debug. I started the breakpoint at line 40. It went to 43 with no problem then jumps to line 66, an end sub line, it then proceeds to go on to the private sub directly below it. That includes it going over the blank lines that would normally be skipped. It goes through the entire private sub line by line including a catch ex line but it displays no error. After hitting that line it immediately returns to line 46 of the sub that it already passed by the end sub line. It then goes down 2 more lines jumps back to the private sub it just left and repeats the end sub line 3 times, only the b at the end is highlighted when doing this not the whole line.
View 3 Replies
Jun 3, 2011
I'm attempting to run my first program in vb.net and everything works BUT the array.
Here is the archive: [URL]
The problem occurs in the Maps.vb file on line 17 when the assignment of variables to the array starts. When running the breakpoint debugger you will notice that when it reaches line 17 it just skips the whole sub and then the next breakpoint is unable to be found.
View 3 Replies
Apr 30, 2012
I have a solution with number of projects developed in Visual Studio 2005 and the breakpoint is not working displaying message 'the breakpoint will not be currently hit' No symbols have been loaded for this document. I have tried solutions/suggestions in the forum and none is working. I have deleted the obj and bin directories and nothing worked. Selecting the Debug Menu, Windows, Modules option I can only see the pdb files for some projects (dlls) and cannot see for the project I'm debugging.
View 1 Replies
Mar 18, 2009
I just had to do a complete reinstall of my development machine (reinstalling VS 2005 & SQL Server 2005). I finally am able to run my projects in VS. I can set breakpoints, however, when I come upon a breakpoint, the IDE won't let me "step" thru each line of code. What am I missing?
View 14 Replies
Dec 1, 2010
I just got Windows 7, so I re-installed VB 2008 Express and have been met with some weird issues. One of which is when my program is running it used to break on a line where an error was occurring and tell what it was and let me fix it and continue. So I can see the error in the Immediate window but why is it not breaking on the line? It just continues loading the program. Is there a setting I'm missing?
View 4 Replies
May 1, 2009
I'm having to write a reporting application that gets information from some Interbase servers and it also has to work on Vista as well as XP, I'm using to connect Borlands Data Provider.[code]My Issue is that debugging on my xp Machine the dataset gets filled, debugging on my vista box it fails ("Interbase provider initialization failed"), my initial thought was that this could be UAC related but I've compiled the application and 'ran as admin' and still same issue. (by the way it failes on the line Dim da as BdpDataAdapter...)
View 1 Replies
Apr 2, 2010
I have an InkPicture larger than can fit on screen and so am using Panel with AutoScroll. When I scroll down and start inking the picture it is fine. But if the InkPicture loses focus and I attempt to ink the picture again, the InkPicture position will change, it resets to original position. I have been stuck on this for some time now.
View 1 Replies
Feb 11, 2010
I have a weird behavior with tabs on a VB.NET form.On a form I have several comboboxes, text boxes, and 2 buttons.I have made sure my tabindex are in the order I desire, meaning combobox1 has tabindex 1, combobox2 tabindex 2, button1 tabindex5,etc..Here is the behavior, when I first open the form, if I tab from combobox1 it jumps directly to the button, instead of combobox2, however once I help things with the mouse, it will tab in the appropriate order.
View 8 Replies
Feb 15, 2012
I'm using the OnTextChange event on a textbox on an ASP.NET page. To have this working I have to put 'AutoPostBack=true'.
The problem is that the textbox is on the bottom of the page, and when the text changes it has to fill another textbox. This is working fine but when the event triggers the page refreshes and jumps to the top of the page, so I always have to scroll down again to see it. (Due to the autopostback)
Is there anything I can do to prevent it to jump to the top of the page?
View 2 Replies
Feb 10, 2009
I'm successfully refreshing my DataGridView/Access DB by using the following.[cod]My only problem is after the refreshes the DGV rolls back to the first entry.Is there anyway to have it refresh but stay on the same line?
View 4 Replies
Jan 14, 2010
I have successfully ported a VB6 application to VB.NET (VS2008, .NET 2.0). Much optimization and rewriting has been done, but there is one possible BUG i cannot overcome. I have a standard HSCROLLBAR control used for accepting a numeric input. The control needs to be disabled during complex computational routines to prevent additional user input. I am setting the enabled property to false and reenabling the control at the end of the calculation cycle. The control is enabled and disabled a few times, because some code has been placed in the onpaint event of a drawing area, and separating the calculation part from the drawing part will be a huge task.
Large changes are handled correctly. Small changes aren't. The problem is that the control freezes in a unknown state after clicking on the arrows. A second click makes the control (and its parent control box) jump up and over everything else in their container.The scrollbar remains functional only via the contextual menu. This happens both in debug and release builds. There are no overrides. Coding/Test platform XP SP3 (more than 1 machine).
There is no code whatsoever that handles neither the parent control nor the scrollbar repositioning and resizing. The only code takes the value of the scrollbar and passes to the calculation section. If I omit disabling and reenabling the control, everything works fine.i tried rebuilding the control from scratch. forcing enabling the control after it has gone haywire does not make changes, disabling the groupbox instead of the single control doesn't make any difference, debugging step by step confirms that things go wrong when drawing the controls within the private system form classes.
View 3 Replies
Aug 1, 2011
I have an VB application that I developed in Visual Studio 2008. The back end is SQL. Application stores quite a bit of information and gets updated daily by users. It also connects to AD to get u/p, adds new accounts in AD and adds mailboxes. Users connect to it through Citrix. We noticed big spikes in memory usage. The executable itself is less than 5Mb; if I run it and it opens main form - memory usage jumps to about 19Mb, open a report - it jumps to 80 Mb. If I open the form that is linked to multiple tables - it jumps to 157 Mb. Once users start pulling new information in, update it and connect to AD or Exchange - it could jump to 250 Mb. Also noticed that if user with read only rights has application opened and idle - memory usage constantly changes with a pattern
like 17Mb - 19 Mb - 15 Mb - 17 Mb and so on. This user wasn't even using computer at the time. In general - what could cause such jumps in memory usage? What is the best way to prevent it? On the server we have Windows Server 2003 SE
View 1 Replies
Oct 3, 2010
I have breakpoints set in my code, but when the app loads, a little exclamation point shows up that says "The Breakpoint will not be currently hit. No Symbols have been loaded.
I have searched the forums for possible solutions. I've tried deleting the bin and obj folders and rebuilding my project and that did not work. I've also verified that the build configuration was set to debug and not release, which was also true.
View 7 Replies
Aug 30, 2010
I have a problem where I can't get VS to stop at a breakpoint. It is a DLL that will be used by a third party exe (Intuitive's ERP). Another developer gets his machine to stop at a breakpoint. Mine won't (it always goes to the dll) and I opened the same project on my machine. I tried running the gacutil with the -u option but it says that no assemblies match. This is going to really slow the development process if I have to debug via messages boxes and files.
View 6 Replies
Feb 24, 2012
I break my code modules up in DLLs alot. When I add one of those DLLs to my project, how can I browse it's code to set breakpoints?
View 2 Replies
Jan 28, 2009
I want to set a breakpoint to see what line of code changes a given variable.It was possible in VB6, but it looks like in .NET is only possible to set a breakpoint in a specific line.
View 14 Replies
Feb 8, 2011
I'm trying to debug a program but when I set a breakpoint and run the program I get the message shown on the attached file.
View 14 Replies
Jun 7, 2012
<HttpPost()>
Function Edit(<Bind(Prefix:="Article")> ByVal Article As FormCollection, Optional ByVal DepartementID As Integer = 0, Optional ByVal LeverancierID As Integer = 0) As ActionResult ', ByVal ReferenceSupplierID As Integer
' Dim Art As Article = ArticleService.GetArticleById(Article.ArticleID)
Dim _toUpdateArt As Article = ArticleService.GetArticleById(Article(0))
UpdateModel(_toUpdateArt, Article)
[Code]...
toUpdateArt.Departement = Nothing and _toUpdateArt.Supplier = Nothing is to remove the optional relationship.But it only works when i debug it and sometimes after several loops of the command, before the relation is actually removed and it's stored in the database.When there isn't a breakpoint on the "function", the Relationship will never be nulled.Does anyone has an explanation for this and how to fix this?
View 1 Replies
Feb 3, 2010
Using VB.Net I want to automatically size the height of the headers in a DataGridView so I am calling AutoResizeColumnHeadersHeight during the form load after the data has been populated.
The method doesn't appear to do anything, but does work if I do the following:
- put a breakpoint on grid.AutoResizeColumnHeadersHeight()
- open quickwatch on the grid
- expand the child properties
- close quickwatch and hit F5 to continue processing
The resizing then works I assume the reason is that evaluating one of the properties of the grid is causing the method to behave differently. Does anybody know either what I should be doing differently, or a workaround - e.g. which property do I need to evaluate to make it work?
View 2 Replies
Aug 5, 2010
I would like to set a conditional breakpoint with a string but it doesn't seem to work.
This is the code example:
For Each Elem in Elements
strMyString = Elem.Name
Next Elem
and in the breakpoint condition I wrote: strMyString = "Value"
View 3 Replies
Dec 2, 2010
I have a breakpoint that is not being acted upon, as I am getting an warning saying that : The Source Code is different from the original I have tried to clean the solution, without any luck. I have only one version of the code, so I cannot understand why this is happening.
View 2 Replies
Feb 10, 2010
We are facing a crash issue in our application. To debug the crash issue we have directly executed the application from code.To trace the error we have removed the checked from "EnableJust My Code" options in Debugging and we have checked the "Enabledunmanaged code debugging" option in project properties Debug tab.
View 7 Replies
Nov 8, 2010
I have a function in an external library, for which I do not have the source code, which is causing problems. If I were putting in a breakpoint in my own code, I would put it on the first line of the function, but as it is an external function, I do not have that option. Is there any way to as Visual Studio to break any time the function is called? My current workaround is to do a "Find All References" and put an individual breakpoint on every single call to the function, which is a sucky way of doing things.
View 1 Replies
Aug 2, 2011
When I put a breakpoint in a method I'm calling from a lambda expression, the breakpoint is never hit. When I move the method call outside the lambda, the breakpoint hits.
For example:
Function IncrementAll(ByVal items As IEnumerable(Of Integer)) As IEnumerable(Of Integer)
Return items.Select(Function(i) Increment(i))
End Function
[Code]....
If I call IncrementAll, the breakpoint in Increment does not get hit. Is there a way to make VS 2008 stop on these breakpoints? I hate the thought of rewriting all my LINQ into loops just for debugging.
View 1 Replies
Apr 24, 2007
I have now wasted 8+ hours trying tot fix this problem. I have read many of the dozens of threads already related to this issue and I have not solved the problem.Situation: VS 2005 .NET 2.0 Windows Server 2003 Project is on my local machine, database is on a remote server within network This is not a web service or a hand-help application, it's just a plain old data-base driven website.What I know:
[Code]....
View 20 Replies
Jun 13, 2011
Converted a VB.NET 2003 project to a VS 2010 project, and now I can't step into the code.et the following error:"the breakpoint will not currently be hit. no symbols have been loaded for this document"
View 15 Replies
Apr 21, 2011
Often I reach a breakpoint. Then I want to move the run cursor above. unable to set the next statement to this location.
Then visual studio keeps running even though we're in a breakpoint.
View 3 Replies