Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-06

fpdebug apps

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi,

if I remember correctly, there was a standalone fpdebug application. Am I correct ? Because I could not build any project from the fpdebug/app dir.

PS: I used a fresh svn update for fpc trunk and Lazarus trunk.

regards,

Dimitrios Chr. Ioannidis

Reply by email

Martin Frb
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote 7 lines
Hi,   if I remember correctly, there was a standalone fpdebug application. Am I correct ? Because I could not build any project from the fpdebug/app dir. PS: I used a fresh svn update for fpc trunk and Lazarus trunk.

Indeed, they are currently broken.

I did fix some of the compile errors (Those I had previously fixed in fpdserver, so I knew how to fix them).
But there are some more.

The one in breakpoints, stem from the fact that more than one breakpoint can be set to the same address. But the original design had not foreseen that.
It looks like fpd has a command do delete "the" breakpoint at "address". But that is not possible. So that needs a redesign (or be made "all" brkpnt at addr).

Haven't looked any further.

Reply by email

Martin Frb
to Martin Frb
Martin Frb wrote 14 lines
On 06/06/2019 16:59, Dimitrios Chr. Ioannidis via lazarus wrote: > Hi, > >   if I remember correctly, there was a standalone fpdebug > application. Am I correct ? Because I could not build any project > from the fpdebug/app dir. > > PS: I used a fresh svn update for fpc trunk and Lazarus trunk. Indeed, they are currently broken. I did fix some of the compile errors (Those I had previously fixed in fpdserver, so I knew how to fix them). But there are some more.

Ok it compiles now

fpd.exe yourapp.exe
r
b unit1.pas:33
c

works.
But there is tons of internal output....
IMHO Not very useful as it is.

Reply by email

Marc Weustink
to Martin Frb
Martin Frb wrote 27 lines
On 06/06/2019 22:20, Martin Frb via lazarus wrote: > On 06/06/2019 16:59, Dimitrios Chr. Ioannidis via lazarus wrote: >> Hi, >> >>   if I remember correctly, there was a standalone fpdebug >> application. Am I correct ? Because I could not build any project >> from the fpdebug/app dir. >> >> PS: I used a fresh svn update for fpc trunk and Lazarus trunk. > > Indeed, they are currently broken. > > I did fix some of the compile errors (Those I had previously fixed in > fpdserver, so I knew how to fix them). > But there are some more. Ok it compiles now fpd.exe yourapp.exe r b unit1.pas:33 c works. But there is tons of internal output.... IMHO Not very useful as it is.

:-)

I created fpd only to have a simple project to debug the debugger

Marc

Reply by email

Dimitrios Chr. Ioannidis
to Marc Weustink: :-) I created fpd only to have a simple project to debug the debugger Marc
Marc Weustink wrote
Martin Frb via lazarus wrote:

< snip >

Show quoted text 6 lines
> IMHO Not very useful as it is. > :-) I created fpd only to have a simple project to debug the debugger

I'm planning to use it as an example / temlate.

I think that it will help me on my goal to write the mEDBG prototcol.

It's easier for me to debug a project in Lazarus than a component for Lazarus in Lazarus .... ;)

regards,

Dimitrios Chr. Ioannidis

Reply by email

Martin Frb
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote 8 lines
  I'm planning to use it as an example / temlate.   I think that it will help me on my goal to write the mEDBG prototcol.   It's easier for me to debug a project in Lazarus than a component for Lazarus in Lazarus .... ;)

There also is an fpdebug server. But it may not work at all....

Debugging a project is always easier, that debugging the whole IDE. There is an entire framework for debugging the debuggers. So if you write any fpdebug related code, look at the testcase in lazdebuggers/lazDebuggerFp/test

Reply by email