如何捕捉错误???有没有人在实现基于邻接表的dijkstra算法时,在数据量比较大的时候捕捉不到错误在那里啊?谁
如何捕捉错误???
有没有人在实现基于邻接表的dijkstra算法时,在数据量比较大的时候捕捉不到错误在那里啊?
谁有比较有效的解决方法???
[解决办法]
条件断点
To set a breakpoint when an expression is true
From the Edit menu, click Breakpoints.
Click the Data tab of the Breakpoints dialog box.
In the Expression text box, type an expression, such as x==3, that evaluates to true or false.
Click OK to set the breakpoint.
变量值改变断点
To set a breakpoint when a variable changes value
From the Edit menu, click Breakpoints.
Click the Data tab of the Breakpoints dialog box.
In the Expression text box, type the name of the variable.
Click OK to set the breakpoint.
[解决办法]
崩溃的时候在弹出的对话框按相应按钮进入调试,按Alt+7键查看Call Stack里面从上到下列出的对应从里层到外层的函数调用历史。双击某一行可将光标定位到此次调用的源代码或汇编指令处。
[解决办法]
看调用堆栈,一步一步往回找;
