Skip links

BREAKPOINT command in X++

BREAKPOINT command in X++

Hi! I want to share  is a rather undocumented X++ statement: BREAKPOINT

In any X++ line, you can write BREAKPOINT; which will trigger a breakpoint on this line and open the debugger. With that, you could circumvent the fact that Axapta does not know conditional breakpoints and you could write a line like that:
if (i>10)
BREAKPOINT;

Opinions

Join the Discussion