Closed Bug 239635 Opened 20 years ago Closed 20 years ago

add support for ignoring assertions on windows (windbgdlg)

Categories

(Core :: XPCOM, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

Details

Attachments

(1 obsolete file)

I'd like to be able to ignore certain assertions, i have a short list, the most
important one comes from CNavDTD and happens for each and every spec of
whitespace in a web page. It's amazingly annoying.

I've made this somewhat flexible, instead of absolutely matching an assertion
message, it matches on a single fragment of an assertion. one fragment is always
the filename with a comma affixed.

[HKEY_CURRENT_USER\Software\mozilla.org\windbgdlg]
"r:/mozilla/htmlparser/src/CNavDTD.cpp,"=DWORD:5
Attached patch patch (obsolete) — Splinter Review
Attachment #145440 - Flags: review?(dougt)
Why do we have such assertions in the first place? I don't think assertions are
the right thing to do when there's something unexpected in an input file. 
the assertions i'm ignoring are ones w/ bugs filed and well understood problems.

the navdtd one is because whitespace and related ilk follow normal tags in a
certain enum type, but the tostring method only applies to normal tags.

the assertion itself isn't about the file (whitespace is perfectly valid in
html, and is pretty much required for any nontrivial document), it's about an
incorrect use of an api.
timeless, any thoughts on using a flat file instead of the registry?
windbgdlg is a temporary instance creature, each assert triggers a new one.
reading in a file would be really bad. the registry should have much better
performance characteristics. windbgdlg really needs to be as fast as possible.
Status: NEW → ASSIGNED
Summary: add support for ignoring assertions on windows → add support for ignoring assertions on windows (windbgdlg)
Comment on attachment 145440 [details] [diff] [review]
patch

mozilla/xpcom/windbgdlg/windbgdlg.cpp	1.3
Attachment #145440 - Attachment is obsolete: true
Attachment #145440 - Flags: review?(dougt) → review+
mozilla-org/html/build/win32-debugging-faq.html 	1.14
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Blocks: 299334
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: