Setting cursor on Breakpoint only.

upasanisandipupasanisandip Member Posts: 405
Hi,
I want to set cursor on Breakpoint only when i debug at runtime.
I have selected the option Tools -> Debugger -> Breakpoint on Triggers but the cursor is going through all the code.

Is there any option to set cursor @ runtime only where i given breakpoint.


Suggestions are welcome.

Thanks.
Sandip

Answers

  • NRNR Member Posts: 78
    You can set the cursor to the breakpoint by doing the following :

    1. Set the breakpoint in the C/AL code
    2. Select the Tools >> Debugger >> Active and deselect the
    Tools >> Debugger >> Breakpoint on Triggers

    Now, your debugger is active and after execution of the object, the cursor will stop execution till the breakpoint you have set.
  • upasanisandipupasanisandip Member Posts: 405
    Hi NR ,
    I want to set cursor position on where i have given breakpoint.

    You get my point?
  • kinekine Member Posts: 12,562
    NR is correct... :-) If you want to let the debugger stop just on your breakpoint, you need to disable the "Breakpoint on triggers". In this case, the debugger will stop just in case of breakpoint or error. You can set the Breakpoint in designer...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • upasanisandipupasanisandip Member Posts: 405
    Hi Kine,

    I disable the "Breakpoint on triggers" option & Enable now the Active Option & Set the breakpoint in Code.

    But not working as i want ?
    I also don't know what is prob.?


    Sandip
  • kinekine Member Posts: 12,562
    1) It is possible, that the line with breakpoint is not executed
    2) Sometime the "line with breakpoint" and "executed line of code" is not on same "position" - it means, if you set breakpoint on line right after IF THEN statement the breakpoint will be scipped etc... try to set more breakpoints on next lines in code...
    3) Try to look back into the object if the breakpoints are still there. Sometime they are not saved correctly, for example if you just set them but do not close the designer...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • upasanisandipupasanisandip Member Posts: 405
    Thanks Kine.

    your last post helped me.
Sign In or Register to comment.