AvalonEdit CompletionWindow is not showing when break point is enabled - debugging

I am using ICSharpCode.AvalonEdit for Text Editor. When I am in debug mode with enabled breakpoints, CompletionWindow is not showing in the TextEditor. When disable the breakpoints then CompletionWindow is showing. Anyone facing this issue ? Because of this, I could not debug the code with breakpoints.

The CompletionWindow closes itself when the TextEditor loses focus.
If you really need to debug focus-sensitive code in a debugger, try using a secondary machine and remote debugger. (the second machine can just be a virtual machine)

Related

VSCode: Window to see all breakpoints and toggle them BEFORE running the debug process?

Is there a way to see all the breakpoints you set in VSCode (and toggle them) BEFORE running the debug process? For example, I can see the below breakpoint window, but only after already running the debug process.
Try View > Open view... > find "Breakpoints | Secondary Side Bar". You will be able to see all breakpoints and toggle them:
Please see example

Firefox: debugger: does not stop at breakpoints

There seem to be a lot of postings about this class of problems. Perhaps there is a Mozilla forum where I can ask about this, instead of here?
In my case, I can set breakpoints easily and I can see that they are set. But they are not hit when I refresh the page. Instead, an exception I throw (occurring after the breakpoint) is caught.
EDIT: I found an obscure icon near the top of the window to activate and deactivate the breakpoints! I enabled the breakpoints, but now the page is infinitely looping in some of the debugger's own code and reporting "Paused on exception SyntaxError: '*,:x' is not a valid selector."
I was using the debugger for a Web Extension. Did that put it in a strange mode for regular debugging? How would I get out of this mode?
Question Firefox debugger breakpoint not working did not help me.
This is an old post, but I recently had the same issue and decided to share my solution with the world.
I'm on Firefox 89.0.2 and recently noticed that the debugger does not stop at breakpoints. Completely removing my profile directory and restarting Firefox solved the issue.
To find out the location of your profile folder check the following page from Mozilla: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

How could the C++ Builder XE debugger be affecting my code?

Using C++ builder XE
I'm using a TStatusBar on a form with 2 panels. The first panel is just text. The second is set to OwnerDraw and should indicate a red or green panel showing if a comport is connected or not. This is updated from a TTimer on a form with an interval of 500ms.
What seems to happen is that when I run the program from within the IDE (with the debugger), it works OK, but when I run it from the .exe file in the destination folder, of from within the IDE without the debugger, it doesn't update the status bar.
This is really annoying, because as soon as I run it under the debugger to debug it, it doesn't go wrong !
It seems that the OnDrawPanel event handler is not getting called when I'm not using the debugger.
Anyone got any ideas why, or a way round this ?

MS Access 2003 does not enter into debug mode and ignores breakpoints

I developed a small VBA procedure in MS Access 2003 module (just one public Sub)
The database is locked for me only, nobody else has access to the file.
My code works but there is a small bug I want to find and fix
I need to debug my VBA code. I put breakpoint at the first line of the procedure.
However, when I run this code, it never stops at the breakpoint and never enters to debug mode. Seems like VBA debugger is not working or disabled. I was not able to find any option how it is possible to disable/enable VBA debugger, I supposed it should be always enabled. Now I can debug this code only with the help of putting a lot of message boxes, but it takes a lot of time...
Please see:
ACC2002: Breakpoints Are Ignored in Visual Basic for Applications Code
Enable the Use Special Access Keys startup option.
To do so, follow these steps:
Open the database in which the breakpoint has been set.
On the Tools Menu, click Startup.
In the Startup dialog box, click to select the Use Special Access Keys
check box.
Click OK to close the Startup dialog box.
Close and then reopen the database.
Run the code that contains the breakpoint. Note that execution of the
code pauses at the breakpoint, as you
would expect.
Office 2010 Steps to resolve:
File
Options
Current Database
Make sure "Use Access Special" is checked.
Close and reopen Database.

Debugger.Launch(), Trace.Assert(fail) not working

(Note, this question has been marked answered in Debugging Sharepoint timer jobs but I'm still having trouble)
I'm unable to debug my SharePoint timer job. Usually I can do this by setting one of these:
Debugger.Launch()
Trace.Assert(false)
But a dialog is not shown. I have a log4net OutputDebugStringAppender so that I can use DebugView to monitor output, and I can see that DEBUG ASSERTION FAILED is being written to the debug log. I've tried removing the appender in case it might mess up something, but with no luck.
(Rebuild, restart, IIS reset, Service reset, pdb files in assembly is done)
So why is a dialog not shown? I could really use some help with debugging this timer job and would be very thankful for any ideas.
You are most probably running your app in Debug mode instead of Release mode. In debug mode you already have Debugger attached so it won't launch.
You can find if debugger is attached or not by this:
System.Diagnostics.Debugger.IsAttached
So try like this:
if(!System.Diagnostics.Debugger.IsAttached)
{
System.Diagnostics.Debugger.Launch();
}
Trace.Assert(false)//Trace is not bound to Debug or Release mode so will always run

Resources