Recent

Author Topic: Problem Debug Linux Mint 64  (Read 20862 times)

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Debug Linux Mint 64
« Reply #15 on: March 20, 2014, 03:37:51 am »
So I stopped the executable rights because he aborted due to exception generated.
Start with the F9 and went on line 347 with the F8.
following information to debugger / exceptions Languages
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #16 on: March 20, 2014, 04:05:22 am »
Sorry, not sure what exactly you did in the last logfile, or what problem it has.

the last (2nd) logfile hits the exception. It looks like you choose to stop at the exception, then you inspected some values.

Did you then hit stop? The logfile does not record what you do. So anything that happens, I guess if it was you pressing a key/button. Or if it was the debugger alone.
The logfile shows that the debugger terminated the paused application. So did you press stop?

-------------
I see that EConvertError is not in your list of ignored. Was it on the list before? Or was it never on the list?

If it was not on the list, then there should have been a dialog. The dialog should say that there was an exception "EConverError". The dialog should have a "break" and "continue" button.

Using continue will do F9 (run). Even if you did F7 or F8, continue does F9. That is a bug in Lazarus.


Did you see the dialog? Make sure it is not hidden behind another window? It should be displayed ins front.

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Debug Linux Mint 64
« Reply #17 on: March 20, 2014, 04:59:01 pm »
Follows a new log file, I started with F9 and even went to the line where this error and precionei F8 to generate the Exception I clicked continue, but was aborted due to error.
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Debug Linux Mint 64
« Reply #18 on: March 20, 2014, 05:03:57 pm »
Looks after the error that caused the boot command line by lazarus.

(lazarus:3250): Gdk-CRITICAL **: IA__gdk_drawable_get_size: assertion 'GDK_IS_DRAWABLE (drawable)' failed
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #19 on: March 20, 2014, 05:22:59 pm »
Quote
, but was aborted due to error.
Meaning: The Lazarus IDE crashed ?

I assume, the IDE crashed, as the logfile ends in the middle of a line.

This is a new bug.

Can you please:
In your home dir is a folder .lazarus/  it contains .lazarus/bin/lazarus
For example /home/martin/.lazarus/bin/lazarus

- start lazarus (with or without logfile)
- Open project: <your lazarus install dir>  /ide/lazarus.lpi
- Menu: Run > Run Parameters
  In the field "Host Application", put /home/martin/.lazarus/bin/lazarus (but with your name)
- Run

A 2nd IDE will start. In the 2nd IDE open your app, and debug it, until the 2nd IDE crashes.

The 1st IDE should display something. Copy the error, and copy the stack window please.

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Debug Linux Mint 64
« Reply #20 on: March 21, 2014, 12:37:26 am »
Hello,

Unable to generate the error, as you requested with the command / home / Lidório / .lazarus / bin / lazarus
- The following debug the project was started with the F9 line and I want to debug with F8. The application is started due to more generated execessão she was unable to initialize why aoarece as aborted.
Follows several print and log.

Note: The debud of Lazarus in Linux is very strange that he does not follow the sequence of the code, as it is in windows.
« Last Edit: March 21, 2014, 12:42:30 am by elidorio »
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #21 on: March 21, 2014, 01:14:57 am »
This log appears to be the same as the first log.


I have the feeling we loose some information in the translation.
Or maybe we have different expectations?

I do not know, why there is an EConvertError.
And, I do not know how to fix the EConvertError.

I also do not know, why your app terminates, after the EConvertError.

All I do is looking at how the debugger works.
If you want help with your code, then maybe someone else knows.


You can set a breakpoint on the first line of code, after the "except" (from the try .. except, in which your code is).

If you have this breakpoint, and the debugger tells you, that your app raised an EConvertError, then press continue.
That should stop, at the start of the try/begin block. Then you can step with F8 again, and find out why your app terminates.


----------------------
It will take me some time (maybe a few days, maybe some weeks, maybe longer) to fix the debugger, so that the debugger automatically stops there (which is what it should do).

----------------------
As for the IDE crash. Well, if there is such a crash. I did guess that there was. I am not sure.

So if there was: That is probably a crash in the Lazarus gtk part. The debugger code, may call it, but it is none debugger-code that crashes.
That is something that one of the other developers deals with.
I can help tracing it, so it can be reported.
But for that, we need to reproduce it in the debugger (debug the IDE).

The IDE does not crash for me (Window 32 bit // Fedora 64 bit). So I can not find out what it is.

----------------------

Otherwise: What exactly is the question?


elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Debug Linux Mint 64
« Reply #22 on: March 21, 2014, 02:29:24 am »
So now it was difficult, also do not know how to get vomos simulate this error Debug with Linux in Lazarus.

Since we're talking Debug, because some values ​​Debug does not display the values​​? I'm talking about Windows.
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #23 on: March 21, 2014, 02:35:40 am »
That would be "properties"
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Properties

It is a known problem.

We are working on it. But it will still be a long time before we get there. It is a huge amount of work. We try to replace gdb, by our own debugger.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Problem Debug Linux Mint 64
« Reply #24 on: March 21, 2014, 02:43:27 am »
is this debugger online somewhere I can take a look on it? Never seen a debuggers before so I'm a bit curious.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #25 on: March 21, 2014, 02:54:47 am »
You mean the new one? It is in svn. "fpdebug" and "lazDebuggerFp"

Be very careful, if you decide to install it. It may (probably will) show incorrect results. (don't bother reporting them)

Btw: the gdb sources are online too.

There are others: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Experimental_Debuggers_in_pascal

All unfinished though.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Problem Debug Linux Mint 64
« Reply #26 on: March 21, 2014, 03:09:05 am »
I avoid everything GPL I do not want to get in to a legal argument unwittingly that's the main reason I haven't looked at lazarus sources too also c is a bit unpleasant to read so I will not touch c projects out of curiosity alone. I hope that fpdebug is not gpl too.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #27 on: March 21, 2014, 03:26:32 am »
Sorry, but it is GPL.

I was not aware there is an issue with that.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Problem Debug Linux Mint 64
« Reply #28 on: March 21, 2014, 03:58:27 am »
from the fpdebug site at  graemeg's repository the license seems to be BSD 2 not gpl isn't the same project in the lazarus svn too?

Yes GPL has a viral effect I can't use lets say a stringlist implementation I've seen there in my applications with out making them GPL as well and I do not like to keep track of what I learned from or where I can use it on, so yes it is to be avoided like the plague in source form and only use them in binary form if needed.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12399
  • Debugger - SynEdit - and more
    • wiki
Re: Problem Debug Linux Mint 64
« Reply #29 on: March 21, 2014, 04:16:54 am »
For what I know, its a different project. Albeit with the same name.

The one in Lazarus is based on work, that Mark did years ago. Some parts are from duby (with permission from Dmitri).

 

TinyPortal © 2005-2018