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:

Similar posts...


Get out of break mode

Get out of break mode Icon
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

Cannot enter the project to debug mode Icon
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:

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

Removing "unremovable" breakpoints in Access 2007, how?

Removing "unremovable" breakpoints in Access 2007, how? Icon
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?

Form - Top of other forms

Form - Top of other forms Icon
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)

Strange debugging behavior

Strange debugging behavior Icon
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

Docmd.Close act differently in debug mode Icon
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
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

VB 2010 Express, Windows 7 Debug Not Stopping On Error

VB 2010 Express, Windows 7 Debug Not Stopping On Error Icon
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.

Database launching opens in break mode

Database launching opens in break mode Icon
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

Trace not matching code

Trace not matching code Icon
I'm trying to debug some VBA code I've written, but the step arrow (yellow arrow) does not seem to be linking up correctly with the actual code or breakpoints set.

What can I do to fix this?

removing a break point

removing a break point Icon
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.