Home > Ax Technical, Dynamics Ax > Debugging form controls in Dynamics Ax

Debugging form controls in Dynamics Ax

The X++ debugger doesn’t get invoked when placing breakpoint(ctrl+f9) in form controls.

There have been quite a few suggestions to work around this like the one mentioned one below



I have also a suggestion which i think can be slightly better also.

Add a method called bp() to global.

static void bp()

Now when you want to debug  a formcontrol, type bp() there and  place a breakpoint(ctrl+f9) in the global method.

This will invoke the debugger without any issue.

The advantage here is

>> You need not bother about “breakpoint”  in the code that is shipped.

>> With hardcoded breakpoints you cannot stop them when you want the code to execute, but with this bp() method you can easily remove it  as it is just (ctrl+f9) based.

>> At the end typing bp() is easy then typing breakpoint 😉


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: