c# - Debug.Assert / Retry, different behavior for 32 and 64 bit -
i'm using windowsformsapplication right off shelf. thing added form1_load
event-handler below (visual studio premium 2013):
private void form1_load(object sender, eventargs e) { debug.assert(false); }
for 64 bit debug-build: when nail debug.assert(false)
, force retry button debugger breaks according line of source code. for 32 bit debug-build: when nail same line above messagebox shows hitting retry button not break. q1: why behavior different in first place?
q2: can create 32 bit debug-build break on hitting retry?
edit
i observe behavior described above on windows 8.1, visual studio premium 2013 (version 12.0.30723.00 update 3). i not observe behavior described above on windows 8.1, visual studio premium 2013 (version 12.02.21005.1 rel). specifically, when hitting retry 32 bit debug-build debugger breaks right code. line containingdebug.assert
colored yellowish in contrast 64 bit debug-build same line colored green.
today, installed update 4 microsoft visual studio premium 2013 (version 12.0.31101.00 update 4) , problem fixed. debugger halts on retry both 32 und 64 bit debug-builds.
(for whatever reason, line containing debug.assert(false)
for 32 bit yellowish , 64 bit green.)
c# debugging
No comments:
Post a Comment