Not stopping at Breakpoints in Debug mode
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.
Thank you for taking the time to report an issue.
What's wrong... Please write below.
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
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?
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?
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
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.
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
What can I do to fix this?
I cannot get the code debug screen from appearing. Any ideas?
Attached is what happens.