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
http://axdaily.blogspot.com/2010/04/breakpoint-in-clicked-method.html
http://blogs.msdn.com/x/archive/2009/10/10/condition-breakpoint-workaround.aspx
I have also a suggestion which i think can be slightly better also.
Add a method called bp() to global.
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

*This post is locked for comments