Book a Demo

Author Topic: debugger does not stop at the breakpoint  (Read 7976 times)

Nishtha

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
debugger does not stop at the breakpoint
« on: January 06, 2016, 10:26:52 pm »
In the Enterprise architect as soon as the debugger is launched there occurs a question mark occurs in the breakpoint. After sometime it goes away and a solid breakpoint appears. Then i run the application code remotely the debugger does not stop at the debug point in the Enterprise Architect. I tried restarting the server as well as EA. Please help for the same.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #1 on: January 07, 2016, 09:54:41 am »
From the Help, Failure to Bind Breakpoint:

A breakpoint failure occurs if there is a problem in binding the breakpoint. Breakpoint failures are most often caused by source files being changed without the application being rebuilt. Breakpoints can sometimes bind to a different line, causing them to be moved. If a breakpoint cannot be bound to the binary at this line or the three lines following it, it is displayed with a question mark.
A warning message displays in the 'Details' column of the Breakpoints & Events window, identifying the type of problem:
  • The source file for the breakpoint does not match the source file used to build the application image
  • The time date stamp on the file is greater than that of the image

A warning message is also output to the Debug window.

Does this help you at all?
« Last Edit: January 07, 2016, 10:00:50 am by RoyC »
Best Regards, Roy

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #2 on: January 07, 2016, 04:56:52 pm »
Hi,

the thing I do is:
  • Ensure Debug mode
  • Rebuild my application

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Nishtha

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #3 on: January 07, 2016, 08:02:55 pm »
I tried as you advised and the debugger was launched successfully but after a few attempts it again stopped recognizing the breakpoint. Kindly help.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #4 on: January 07, 2016, 10:08:38 pm »
Hi,

is it possible that you have accidently changed your code?

Another possibility is that EA uses an other DLL (path) as you expect. May be http://community.sparxsystems.com/community-resources/772-ea-installation-inspector helps a bit.

What I also do if I find nothing:
  • Rebuild as release (complete!), deinstall, install
  • Rebuild as debug (complete!)

Sometimes I also reboot my PC (you may laugh).

If you find the cause please publish it. In my opnion it's a common cause of trouble.

Thanks and good luck!

Regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Nishtha

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #5 on: January 08, 2016, 04:58:46 pm »
Thanx Helmut and RoyC, your suggestions were helpful. I just need help in one more thing.
 
I have two packages in a model. Some classes are in package1 and some in package 2. I have made a Analyzer script for package2 and when i am running that script I am getting a message in the debug window which says:

"[76131669]      too many results: 2 records found for findclass Lcom/steria/tributum/request/bl/processing/RequestManager".

Here "com/stria/request/bl/processing/RequestManager" is a class from Package2.
 Can you please tell what does this message mean?

Nishtha

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #6 on: January 08, 2016, 05:15:43 pm »
Also i want to know that if i delete a class from any project and then re import it, then also the debug point occurs at the same point as that of the previous location. How do i reset it? I think that it is somewhere stored in the cache. Sorry if i am wrong, I am very new to EA.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #7 on: January 08, 2016, 07:08:06 pm »
Hi,

I haven't experienced any issues with Cache or so using Addin or Scripting. EA takes care of it as long as you use the EA API.

There is propably something else with your script.

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: debugger does not stop at the breakpoint
« Reply #8 on: January 08, 2016, 07:10:53 pm »
Hi,

regarding your error message: Could you tell what you are doing in the script. Which API you use and what you expect to get.

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)