문제

Well, i´m using the intel fortran debugger for command line (idbc) but i can´t find how to do a conditional breakpoint.

I mean, i would like the debugger to stop the program only if something happens. For example, i have a subroutine called example(a,b,c) which is called several times, but I only want the debugger to stop the program if the variable a has some determined value.

I know that this can be done easily in the GUI version, but i have been reading the manual of the command line version and i couldn´t find the way.

Thank you all!

도움이 되었습니까?

해결책

Sorry, I just found the answer in this page. Once you define the breakpoint with

(idb) break <line_number>

You get a Breakpoint ID, that you can see with the command info breakpoints

(idb) info breakpoints
<IDnumber>     <Brakpoint_type>  .....    <file and line>

to add a condition to a breakpoint you should use the command condition:

(idb) condition <IDnumber> <condition>

for example

(idb) condition 1 ielem==30000

I think that this can be helpful for somebody.

See you!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top