visual studio 2010 - How to see stack just before stack overflow occurs? -
i have stackoverflowexception occurring deep inside linq datacontext upon call submitchanges
. after lot of time wasted trying pinpoint overflow occurring, can't seem figure out.
how can see stack looked before stack overflow shown?
you cannot catch stackoverflowexception
unless it's thrown user code. (more info)
- in visual studio, "debug" menu, choose "new breakpoint > break @ function..."
- in "function" field of "new breakpoint" dialog, enter
stackoverflowexception.stackoverflowexception
- run program in debugger. once stack overflow, debugger stop @ breakpoint.
Comments
Post a Comment