Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Using the Lazarus IDE
»
Debugger
»
Blank form, program hanging in debug
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: Blank form, program hanging in debug (Read 1356 times)
hakelm
Jr. Member
Posts: 91
Blank form, program hanging in debug
«
on:
February 22, 2017, 12:08:23 pm »
I have the following little annoying problem:
When I start my application in the IDE-debugger a blank form is opened up and the program (debugger?) hangs and can only be stopped with ctrl-F2
If I however single step to
Application.Run;
in the project file and then press F9 everything seems to work.
What can I do?
H
Ps
I am using Lazarus 1.6+dfsg-1 on Ubuntu 16.04
Logged
Martin_fr
Administrator
Hero Member
Posts: 4553
Re: Blank form, program hanging in debug
«
Reply #1 on:
February 22, 2017, 06:06:47 pm »
Strange...
Does "Pause" work?
You can try (far fetched)
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#On_Windows_Open.2FSave.2FFile_or_System_Dialog_cause_gdb_to_crash
------------------
Which version of gdb?
anything above gdb 7.7 may have issues with stabs. (afaik default by fpc)
Setting is in Project options / debug
AND fore EACH package in the package options.
(or use "Additions and overrides)
Either way, try changing ALL debug info to dwarf (with sets) / (But not dwarf 3)
---------
If still no success, go to the bottom of the page I linked above, and provide a log file.
--
Btw always use F9 to start your app (or "Run" from the menu, or the run button).
Do not start your app with F7 or F8, only use those if the app is already running/paused.
Logged
hakelm
Jr. Member
Posts: 91
Re: Blank form, program hanging in debug
«
Reply #2 on:
February 22, 2017, 07:51:49 pm »
Thanks
Synaptic tells me I have GDB 7.11.1-0ubuntu1~16.04, which I assume Lazarus uses.
I tested the different choices for debugger info and it is only Dwarf3(beta) (-gw3) that seems to work but Pause does not work:
The file "../sysdeps/unix/syscall-template.S" was not found.
Do you want to locate it yourself?
There is no file syscall-template.S on my system. What can I do about that?
Pls note my system has worked flawlessly earlier but in order to get anchordockingdsgn to work having tried some different Lazaruses but now I have reverted to 1.6+dfsg-1.
H
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Using the Lazarus IDE
»
Debugger
»
Blank form, program hanging in debug
Recent
Replicate CURL command wi...
by
lainz
[
Today
at 09:10:24 pm]
AutoSize TMemo.Height?
by
ASerge
[
Today
at 08:38:48 pm]
Advise on how to create a...
by
lainz
[
Today
at 08:03:39 pm]
how to disable directive
by
marcov
[
Today
at 07:29:25 pm]
[SOLVED]Have troubles che...
by
CM630
[
Today
at 07:28:47 pm]
TDBCombobox useless?
by
wwerner
[
Today
at 07:20:47 pm]
Strange problem
by
taazz
[
Today
at 06:48:16 pm]
FPHTTPClient + GitHub = :...
by
Phil
[
Today
at 05:42:48 pm]
Help conversion string UT...
by
critter
[
Today
at 05:21:01 pm]
Desabilitar componentes d...
by
arirod
[
Today
at 05:16:37 pm]