Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Breakpoint at the beginning

DawidS
2017-07-20
2017-07-20
  • DawidS - 2017-07-20

    I'm debugging my library. I can set breakpoints during debugging. This works well. I have the problem with the setting breakpoint in function which is run ones at begin program. When I login, application stop and I can toggle breakpoint but when I click start, the program does not stop at this breakpoint. It looks like some part of the code (where the breakpoint exists) is executed after login.

     
  • josepmariarams - 2017-07-20

    Hi.

    All initialization code (all fb_init for example) is executed before run, and as I can know it is not possible to make an breakpoint.

    I had the same problem with a library, and I solved it using log messages

     
  • DawidS - 2017-07-20

    Josep, thank you very much for your reply.

    Could you give advice how can I use log messages?

     
  • josepmariarams - 2017-07-20

    Hi.

    See this discussion

    l viewtopic.php?t=7517 l

     

Log in to post a comment.