Recent

Author Topic: Ongoing debugging  (Read 2977 times)

Swatznik

  • Newbie
  • Posts: 2
Ongoing debugging
« on: October 22, 2013, 10:18:27 am »
I'm brand new to Delphi and I've only been able to successfully run my first project.
After I save it and attempt to continue adding another button, the debugger goes on forever till the "oops..." message comes up.
At this point the run arrow is shaded and doesn't work; basically everything else requires me to stop debugging before I can continue.
If I save as something else so I can continue, it just doesn't work. The previous project I saved doesn't run anymore even though everything's the same as the previous project; i.e. the event handler of the first project.

Please can someone help; I can't even get started :(
I'm using windows 7 with a 64 bit OS. I downloaded v1.0.12 for that OS

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12350
  • Debugger - SynEdit - and more
    • wiki
Re: Ongoing debugging
« Reply #1 on: October 22, 2013, 10:42:42 am »
That sounds like at least 2 issues.

1) the "oops" debugger error
2)  The "run button" should return to green.

Please try the following:

*
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working

Go to the debugger options (Menu: Tools > Options > Debugger > General) and in the field "debugger_startup_options" (it is in the grid) enter:

        --eval-command="set auto-solib-add off"

*
Please check your Antivirus. In the past several Antiviriuses, have misbehaved.
Years ago Commodo and Bitdefender interfered with the debugger (search the forum). I do not know if this is still the case.

*
If that does not help, please provide a logfile, so I can try to find anything in there.

http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session


----
After the error, if the button stays greyed out, try "Reset debugger" from the run menu

Swatznik

  • Newbie
  • Posts: 2
Re: Ongoing debugging
« Reply #2 on: October 22, 2013, 04:36:12 pm »
Thank you, Martin_fr.

"Reset debugger" helped, I also made that change to debugger options.
I'm still not able to save my projects without the 'debugging' going on and on.
I'll get the log tomorrow after I've had a chance to properly give it a go on my laptop at home, where I'm having the same issue.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12350
  • Debugger - SynEdit - and more
    • wiki
Re: Ongoing debugging
« Reply #3 on: October 22, 2013, 06:00:52 pm »
I am not sure, what you mean

Code: [Select]
I'm still not able to save my projects without the 'debugging' going on and on.
Code: [Select]
If I save as something else so I can continue, it just doesn't work. The previous project I saved doesn't run anymore even though everything's the same as the previous project; i.e. the event handler of the first project.

Do you mean "Save as" To make a copy of the project?

That may be a problem, since then the old project is updated to the new folder too... So the old project may fail too.

To copy a project:
- Open it in the IDE
- Menu "Project" > "Publish Project"
  --  Choose a destination directory
  -- Leave all other settings as they are
  -- Press "OK"


Alternatively: You may also be able to copy the folder containing your project, while the IDE is closed.

Talking about project settings:
1) Menu: "Project", "Project options":
 Some pages allow setting/changing paths => Do NOT do that.
  (If you have not seen them/ have not touched them: never mind)
2) The IDE ask you in a  popup "Add to project ... path"
  Usually say  "YES"
  However, if you are just starting, you should NOT see this.

If you have never seen any of the 2 above: Very good.
If you have, please post details.


---
Otherwise not sure what you mean?
I assume when you hit "save", are the files on disk updated?

Please make a different between "Does not compile" / "Does not run"
See the errors show in the messages window of the IDE.

In your project folder (OR in projectfolder/lib/win32-i386  OR projectfolder/lib/win32-x64  OR similar) will be an executable "project1.exe"  (or whatever you named your project)
1) If you delete it, and compile, it should be created again.
2) You can test if that runs (if it does not start in the IDE)


 

TinyPortal © 2005-2018