web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Breakpoint doesn't stop when debugging code

(0) ShareShare
ReportReport
Posted on by

Hello.

For some reaon - Something wrong when debugging.

I don't undertand why setting breakpoint on my code, and running any application doesn't stop on the set breakpoint (Which worked correctly before).

Thanks :)

*This post is locked for comments

I have the same question (0)
  • Steeve Gilbert Profile Picture
    1,501 on at

    There's a weird bug (at least for us) where breakpoint won't work in certain code location.  I don't remember if it happens elsewhere but in clicked() method of a Form button, it won't stop.  We always get caught and then remember that it doesn't work.

    If it worked correctly before, I guess all your setup is ok (User setting "Debug Mode", AOS setting to allow debugging of the instance)

  • Community Member Profile Picture
    on at

    It worked correctly before.

    If there is a bug, so how can I overcome that  problem, anyway?

    (Maybe there is a file that "holds" the breakpoints, which need to be deleted and re-create).

    Thanks :)

  • Suggested answer
    Community Member Profile Picture
    on at

    Break points do not work in the following places:

    Events on forms (clicks, etc).

    Work around: put a method call to an element.method and put the breakpoint there

    Code executed on the server, with AOS debugging disabled on the AOS.

    Work around: enable server side breakpoints in the AX 2009 Server configurator

    Code executed from the business connector in many situations

    workaround: run aos/client/business connector on same server etc etc.. there are enough tutorials for that to explain it in detail.

  • Suggested answer
    Qiang Ying Profile Picture
    55 on at

    To add to Floris good explanation:

    Hard coding break points also helps, that is writing

    breakpoint;

    in the code where you want the break point to be. The word should also highlight in blue. Shouldn't use that in a production system though unless you know nobody else will be executing that code during the time you have the hard coded break point in there.

     

  • Community Member Profile Picture
    on at

    Hello

    The Breakpoints do not work on

    events, click, or code at user nivel

    now, if not stop the brakpoint on any point

    Make sure the checkbox that is in the server configuration utility AX server is activated, this is in the aplication server.

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans