On 09/27/2013 06:53 PM, Graeme Geldenhuys wrote:
The bad news ...
What we always do for complex (and free running) CGI applications is do
a miniature CGI program that is perfectly normal and does implements
nothing but a communication with a Daemon / Service that always runs and
does the
On 27/09/13 21:12, Martin wrote:
ExecuteCommand('-gdb-set language pascal', [cfCheckError]);
Adding that AFTER the attach did the trick. I can now query variables
and class instances. Many thanks.
BTW:
In Lazarus IDE my debug info type was set to Auto. So which type does it
default to under
On 29/09/2013 11:34, Graeme Geldenhuys wrote:
On 27/09/13 21:12, Martin wrote:
ExecuteCommand('-gdb-set language pascal', [cfCheckError]);
Adding that AFTER the attach did the trick. I can now query variables
and class instances. Many thanks.
Well thanks for testing.
I changed this in svn.
Just a follow-up on this thread.
The bad news
No matter what I tried, under Windows, Linux or FreeBSD... I couldn't
successfully debug a CGI application that uses multiple threads (I have
threads that do log to file etc). I tried the infinite loop debug
method - as I used to do with
On 27/09/2013 17:53, Graeme Geldenhuys wrote:
Just a follow-up on this thread.
The bad news
No matter what I tried, under Windows, Linux or FreeBSD... I couldn't
successfully debug a CGI application that uses multiple threads (I have
threads that do log to file etc).
On windows
On 27/09/2013 20:46, Graeme Geldenhuys wrote:
On 27/09/13 19:33, Martin wrote:
Can you send me a log for this? You use debug info in the exe, not
external?
Yes, debug and line info information is enabled and debug information is
inside the executable (not external).
See attached screenshot
On 27/09/2013 21:12, Martin wrote:
2) In gdbmidebugger
line 5090
function TGDBMIDebuggerCommandAttach.DoExecute: Boolean;
line 5123
// Attach
if not ExecuteCommand('attach %s', [FProcessID], R) then
...
line 5145
// Get PID
NewPID := 0;
Insert after this
ExecuteCommand('-gdb-set
On 09/18/2013 05:54 PM, Sven Barth wrote:
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a running process.
The page also states that remote debugging with gdbserver is supported.
Dis anybody get this running for a PC as
On 19/09/2013 08:23, Michael Schnell wrote:
On 09/18/2013 05:54 PM, Sven Barth wrote:
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a running process.
The page also states that remote debugging with gdbserver is
On 18/09/2013 20:57, Graeme Geldenhuys wrote:
Once I get it working, I'll update the CGI Web Programming
[http://wiki.freepascal.org/CGI_Web_Programming] wiki page on the
alternative way to debugging CGI apps.
Thanks - that may well save me some trouble next time ;)
--
On 09/19/2013 09:35 AM, Martin wrote:
Does gdb suppor asyncronous mode for this target?
I don't know.
We tried to attach to gdbserver via TCP/IP.
e.g can you
gdb -i mi
-exec-continue
I did not do this myself, but a pal of mine from the German Lazarus
forum did these tests. So I can't
On 19/09/2013 09:07, Michael Schnell wrote:
In fact I preferred to try to make working to have Lazarus remotely
attach to a full gdb on the target via SSH. (When I last looked at
it there ware some disabled lines of code for this in the Lazarus
sources.
look at
On 09/19/2013 12:08 PM, Martin wrote:
The other is that for all targets you can easily get a native gdb out
of the box, while it might be rather tedious to install all the tools
to create the appropriate gdbserver on the target and the cross-gdb
executable on the PC you need to attach to
On 09/19/2013 12:27 PM, Michael Schnell wrote:
typo: he never again was able to compile gdb/gdbserver.
-Michael
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
On 09/19/2013 12:27 PM, Michael Schnell wrote:
He was up to ... pushing it in the Lazarus wiki.
In fact he did start to write a report in German, and I promised to
translate it for the Wiki, once it is done, and enhance it on how to use
the SSH-Remote debugging.
-Michael
--
On 19/09/2013 12:36, Michael Schnell wrote:
On 09/19/2013 12:27 PM, Michael Schnell wrote:
He was up to ... pushing it in the Lazarus wiki.
In fact he did start to write a report in German, and I promised to
translate it for the Wiki, once it is done, and enhance it on how to use
the
On 09/19/2013 12:38 PM, Reinier Olislagers wrote:
Sounds like an inefficient process. Why doesn't he just upload a
German version to the German version of the/a wiki page so the text is
already there and anybody that speaks German English can help
translate it...
OK, if we do have
On 2013-09-18 18:30, Martin wrote:
If you use an integer var, you can modify it from the IDE.
Do not modify managed types
OK, I got the latest Lazarus from Trunk and compiled it with FPC 2.6.2
and using GDB 7.2 under Win2000 (a VM).
I enter the PID and click OK. The Lazarus IDE shows
Am 19.09.2013 13:20, schrieb Graeme Geldenhuys:
Not sure if I'm doing wrong. I'll try with GDB command line and MSEide
under Windows now.
Better try on Linux. gdb on Windows is always a lottery...
Martin
--
___
Lazarus mailing list
On 19/09/2013 13:20, Graeme Geldenhuys wrote:
On 2013-09-18 18:30, Martin wrote:
If you use an integer var, you can modify it from the IDE.
Do not modify managed types
OK, I got the latest Lazarus from Trunk and compiled it with FPC 2.6.2
and using GDB 7.2 under Win2000 (a VM).
I enter the
On 09/19/2013 02:20 PM, Graeme Geldenhuys wrote:
OK, I got the latest Lazarus from Trunk and compiled it with FPC 2.6.2
and using GDB 7.2 under Win2000 (a VM).
Good man.
Doing this I just got (on Linux):
Compiling debugmanager.pas
debugmanager.pas(63,3) Error: Duplicate identifier
On 09/19/2013 03:09 PM, Michael Schnell wrote:
Ooops:
I was using fpc 2.7.1.
Anyway.
-Michael
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
On 2013-09-19 14:05, Martin wrote:
[1] Just realising, the attach module does not currently fix this
extra thread. It should probably automatically select the main thread.
OK, selecting thread 1 does help a bit, and after some trial and error I
get to the breakpoint of the infinite while
On 19/09/2013 15:01, Graeme Geldenhuys wrote:
On 2013-09-19 14:05, Martin wrote:
[1] Just realising, the attach module does not currently fix this
extra thread. It should probably automatically select the main thread.
OK, selecting thread 1 does help a bit, and after some trial and error I
get
Hi,
As the subject line says, can Lazarus IDE's debugger attach to a already
running process? The running process is a program compiler earlier with
Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the
Lazarus IDE, so I have visual debugging?
If one can, how do I do it?
On 18/09/2013 16:49, Graeme Geldenhuys wrote:
Hi,
As the subject line says, can Lazarus IDE's debugger attach to a already
running process? The running process is a program compiler earlier with
Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the
Lazarus IDE, so I have
On 18/09/2013 18:11, Graeme Geldenhuys wrote:
On 2013-09-18 16:54, Sven Barth wrote:
According to
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a running process. Never used
it yet though.
OK thanks. I found it under the
On Wednesday 18 September 2013 17:49:23 Graeme Geldenhuys wrote:
Hi,
As the subject line says, can Lazarus IDE's debugger attach to a already
running process? The running process is a program compiler earlier with
Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the
On 2013-09-18 16:54, Sven Barth wrote:
According to
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a running process. Never used
it yet though.
OK thanks. I found it under the Run menu but couldn't get it to work. In
On 18.09.2013 17:49, Graeme Geldenhuys wrote:
Hi,
As the subject line says, can Lazarus IDE's debugger attach to a already
running process? The running process is a program compiler earlier with
Lazarus IDE. I know GDB [via CLI] can do this, but can you do it via the
Lazarus IDE, so I have
On 18/09/13 21:14, patspiper wrote:
On 18/09/13 21:01, Martin wrote:
On 18/09/2013 19:00, patspiper wrote:
I tried to attach to an external process (Ubuntu 11.04) and (Ooops)
the debugger entered the error state; Attach failed. This happens
whether the process is a Lazarus compiled app or
On 18/09/13 20:32, Martin wrote:
On 18/09/2013 18:11, Graeme Geldenhuys wrote:
On 2013-09-18 16:54, Sven Barth wrote:
According to
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a running process. Never used
it yet
On 18/09/2013 19:00, patspiper wrote:
On 18/09/13 20:32, Martin wrote:
On 18/09/2013 18:11, Graeme Geldenhuys wrote:
On 2013-09-18 16:54, Sven Barth wrote:
According to
http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes
current 1.1 versions support attaching to a
On 18/09/13 21:01, Martin wrote:
On 18/09/2013 19:00, patspiper wrote:
I tried to attach to an external process (Ubuntu 11.04) and (Ooops)
the debugger entered the error state; Attach failed. This happens
whether the process is a Lazarus compiled app or other.
Lazarus 1.3 r42849 FPC 2.6.3
On 2013-09-18 18:46, Martin Schreiber wrote:
Instead of using DDD, in MSEide it is 'Target'-'Attach Process'.
Excellent, thanks Martin! Will give it a try.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
--
On 2013-09-18 18:32, Martin wrote:
What went wrong?
The whole IDE froze up - I was using it under FreeBSD 9.1 (64-bit) with
LCL-GTK2 compiled IDE. I tried as my normal user first, then noticed the
security issue of attaching to a process I don't own. I then copied the
.lazarus/ directory to the
On 2013-09-18 19:00, patspiper wrote:
I tried to attach to an external process (Ubuntu 11.04) and (Ooops) the
debugger entered the error state; Attach failed.
Ah yes, I had that one too - as my normal user. I deduced it was because
I didn't own the process I was trying to debug. The IDE froze
On 2013-09-18 18:30, Martin wrote:
If you use an integer var, you can modify it from the IDE.
Do not modify managed types
OK, thanks for that tip.
Once I get it working, I'll update the CGI Web Programming
[http://wiki.freepascal.org/CGI_Web_Programming] wiki page on the
alternative way to
On 18/09/2013 19:52, Graeme Geldenhuys wrote:
On 2013-09-18 18:32, Martin wrote:
What went wrong?
The whole IDE froze up
After orl before you enter the PID/
Can it be that the PID input win was (due to the gck focus/window z
order issues) hidden? It is modal, so the rest of the IDE would
On 18/09/2013 20:03, Martin wrote:
On 18/09/2013 19:52, Graeme Geldenhuys wrote:
On 2013-09-18 18:32, Martin wrote:
What went wrong?
The whole IDE froze up
After orl before you enter the PID/
Can it be that the PID input win was (due to the gck focus/window z
order issues) hidden? It is
On 2013-09-18 20:03, Martin wrote:
After orl before you enter the PID/
Can it be that the PID input win was (due to the gck focus/window z
No, I saw the PID input window just fine. The freeze-up occurred after I
entered the PID and clicked OK.
Regards,
- Graeme -
--
fpGUI Toolkit - a
41 matches
Mail list logo