Topics Search

Not stopping at Breakpoints in Debug mode

Not stopping at Breakpoints in Debug mode
Views: 19
I am using VS2010 with Win7 and VB.NET solution. Between, everything was working fine for months; the problem started yesterday.

The solution and the projects within it are set for Debug; I deleted the .suo file as recommended in one posting. I ran rebuild on each and every project individually and the entire solution.

I deleted the files in bin\Debug and did the whole thing over again. Still can't debug.

While stepping into (F8) I did get the hollow debug symbol in the margin and when just running the program (F5) the program starts up without stopping at any of several breaks in different functions and subs.
Sponsored Links:

More topics

 

Get out of break mode

Preview
Last time when I close Access, I forgot to clear the breakpoints. When I start Access again, the program break at the points where I set earlier, but no break indicator. "Debug>Clear All Breakpoints" doesn't work. How do I get rid of this pesky behavior?
 

Cannot enter the project to debug mode

Preview
I have a project that was download from the net. It is a open source project. I can run without anyerror with IDE 2005. But I cannot enter the debug mode. I have set the project build to debug. But I cannot still enter to debug.

I also got the following message when I run the project.

The following module was built with optimizations enabled or without debug information:
E:\Project.exe

To debug this module, change its project build configuration to debug mode. To suppress this message, disable the "Warn inf no user code on launch" debugger option
 

Form - Top of other forms

Preview
I have application with toolbar. When I run the form in debug mode after completing debug form is not opened (Please see the screeshot attached). I need to close the form and open it again.Is there anyway to keep that form open in debug mode (Top of other forms)
 

Removing "unremovable" breakpoints in Access 2007, how?

Preview
I have a situation of a non removable breakpoint in my Access 2007 applicaiton.

I have done "clear all breakpoints" countless times, complied the code countless times, compacted the database, exit / restart, and on and on.

I can not seem to find a way to get this breakpoint to go away.

Does anyone happen to know where Microsoft keeps the list of breakpoints? Perhaps in one of the hidden tables? Any other ways than "clear all breakpoints" to remove ALL of them?
 

Strange debugging behavior

Preview
this is weird, never saw this before in 10 years of working with Access:

When I open one particular form in Access, it automatically goes into VBA debugging mode, but only when I go to it from the main menu form. When I open the form from list of forms in the database window, it does not do this.

Last time I used this DB I was debugging that particular form but I cleared the breakpoint.

I have opened both forms and looked over the VBA and there are no breakpoints set. I've tried clearing all breakpoints as well but it keeps happening.

Does anyone know what might be going on?
 

Docmd.Close act differently in debug mode

Preview
A form calls a second form.
When the second form is closed during run-time, the docmd.close works
When in debug mode, stepping through code a line at a time -
The parent window closes (line 210)
Line 220 corrects this problem
It allows debug mode with out the calling form being affected.

170 DoCmd.SetWarnings False
180 DoCmd.RunCommand acCmdSelectRecord
190 DoCmd.RunCommand acCmdDeleteRecord
200 DoCmd.SetWarnings True
Forms!comments_1.SetFocus
210 'DoCmd.Close ' Note: this works in run time, but in debug mode it closes the calling form, next line fixes this problem
220 DoCmd.Close acForm, Me.Name, acSaveNo
 

Database launching opens in break mode

Preview
I can't recreate this on my local copy but my db launches in break mode on another workstation. The debug window opens which of course confuses the user. The db is split with the tables on a shared network drive.

Error trapping is set to break on all unhandled errors and when I compile the db from the debug menu, it doesn't break at all
 

VB 2010 Express, Windows 7 Debug Not Stopping On Error

Preview
I've just installed Visual Studio 2010 Express on a new laptop running Windows 7 64 bit.

When I debug a VB project and an error is encountered a message is sent to the immediate window, but execution is not halted. This means I am unable to look at variables etc.

It's probably just an option I've missed.
 

removing a break point

Preview
I had some break points - I cleared them. But everytime I start the DB the code displays and stops in debug mode.

I cannot get the code debug screen from appearing. Any ideas?

Attached is what happens.
 

Lost Menubar

Preview
In VB 2010 after working on a form in design mode which has a menustrip and the form is taller than the IDE [Design] window and not returning to the top of the window before running in debug mode, the menu is eliminated from the menubar on the running form when the controlbox is set to False for the form and I could not access the menu.

After returning to design mode and scrolling to the top of the form and running debug, the menu returned. Is this a bug in the IDE or what?