Hi,
As far as I know, Lazarus doesn't have a Thread List Window available. So I am trying to setup and external tools menu item which will do this for me, but I am have some problems with it.
This is the actual setup strings used for the external tool.
Program Filename:
/usr/bin/gnome-terminal
Parameters:
--title="Thread Monitor - $NameOnly($TargetFile())" --command="watch -n.1 'ps -C $NameOnly($TargetFile()) -L -o pid,tid,pcpu,state'"
When I run Lazarus from the command line under Linux, this is the output shown to stdout when I try and run my external tool.
[TExternalToolList.Run] CmdLine="/usr/bin/gnome-terminal --title="Thread Monitor - project1" --command="watch -n.1 'ps -C project1 -L -o pid,tid,pcpu,state'"" WorkDir=""
As far as I can see the macros used in the External Tool step was converted correctly. I can even copy and paste the CmdLine without the outer quotes and it executes fine from a teminal window. Yet, if I run it from the Tools menu gnome-terminal gives an error. The error is: "There was an error creating the child process for this terminal"
Anybody know what I am doing wrong?
Regards,
- Graeme -
