View Issue Details

IDProjectCategoryView StatusLast Update
0037885LazarusDebuggerpublic2020-10-08 01:42
ReporterSven Barth Assigned ToMartin Friebe  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformX86_64OSWindows NT 
Product Version2.1 (SVN) 
Fixed in Version2.2 
Summary0037885: Debugger hangs if program previously aborted with error
DescriptionThis is kinda a follow up of 0037861, though I have not checked whether it behaved this way before the addition of the dialog as well (though it does not happen with 2.0.10).

I have the following main program:

program tdlltest;

{$mode objfpc}{$H+}

procedure Test; external 'Foobar.dll' name 'Test';

begin
  Test;
end.


The library Foobar.dll does not exist, so running it will abort with an error.

Now for the following it doesn't matter if I have the "dialog on error" enabled or not: if I run the program again the IDE will change its title bar to "(Debugging...)", but the stop button won't be enabled and no command line window will appear. The debug output window is empty. Trying to close the IDE will display the "do you want to stop debugging"-dialog and no matter what the IDE won't terminate after the dialog is confirmed. I need to kill it using Task Manager.
Additional InformationThis happens with both versions of GDB provided by Lazarus.

It does not happen if the program ran without error.
TagsNo tags attached.
Fixed in Revision63966
LazTarget2.2
WidgetsetWin32/Win64
Attached Files

Activities

Martin Friebe

2020-10-07 23:07

manager   ~0126133

Will be looking into it....

The "no matter what" => try: Run > Reset debugger. That should at least get it stopped.

Sven Barth

2020-10-07 23:32

manager   ~0126134

Okay, yes, had totally forgotten about "Reset debugger". That works. :)

Martin Friebe

2020-10-08 01:42

manager   ~0126136

Please test and close if ok.

After the first launch failed, the debugger would not even attempt to run the exe again.

Issue History

Date Modified Username Field Change
2020-10-07 22:27 Sven Barth New Issue
2020-10-07 22:27 Sven Barth Status new => assigned
2020-10-07 22:27 Sven Barth Assigned To => Martin Friebe
2020-10-07 22:29 Sven Barth Additional Information Updated View Revisions
2020-10-07 22:29 Sven Barth LazTarget => -
2020-10-07 22:29 Sven Barth Widgetset Win32/Win64 => Win32/Win64
2020-10-07 23:07 Martin Friebe Note Added: 0126133
2020-10-07 23:32 Sven Barth Note Added: 0126134
2020-10-08 01:42 Martin Friebe Status assigned => resolved
2020-10-08 01:42 Martin Friebe Resolution open => fixed
2020-10-08 01:42 Martin Friebe Fixed in Version => 2.2
2020-10-08 01:42 Martin Friebe Fixed in Revision => 63966
2020-10-08 01:42 Martin Friebe LazTarget - => 2.2
2020-10-08 01:42 Martin Friebe Widgetset Win32/Win64 => Win32/Win64
2020-10-08 01:42 Martin Friebe Note Added: 0126136