Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[solved]how to use debug mode option
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
ThorVG - test (lightweigh...
by
Boleeman
[
Today
at 11:28:52 am]
Fpcupdeluxe
by
tk
[
Today
at 11:27:55 am]
Status of FPC 3.4.0 or FP...
by
marcov
[
Today
at 10:41:52 am]
Lazarus recompiles some o...
by
Hartmut
[
Today
at 09:26:21 am]
Strange Error in My Code ...
by
TYDQ
[
Today
at 09:18:58 am]
External SIGSEV (Database...
by
Zvoni
[
Today
at 08:26:34 am]
[ANN] fpGUI Toolkit v2.0....
by
CM630
[
Today
at 08:02:35 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 01:08:23 am]
[SOLVED] TaChart on MAC: ...
by
wp
[
Today
at 12:16:09 am]
Fast Canvas Library V1.05...
by
backprop
[February 10, 2026, 11:38:53 pm]
fpGUI vs MSEide + MSEgui?
by
Graeme
[February 10, 2026, 10:23:25 pm]
Is FPGUI still active?
by
Graeme
[February 10, 2026, 10:20:16 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[February 10, 2026, 09:31:40 pm]
TLazSerial : serial port ...
by
CM630
[February 10, 2026, 09:14:56 pm]
it2play - IT/S3M module r...
by
Lulu
[February 10, 2026, 09:11:05 pm]
The Future of FPC
by
Ten_Mile_Hike
[February 10, 2026, 07:38:23 pm]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[February 10, 2026, 06:47:29 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[February 10, 2026, 03:30:13 pm]
Where is Lazarus config
by
Martin_fr
[February 10, 2026, 12:10:36 pm]
Anchordocking - window pr...
by
Zvoni
[February 10, 2026, 10:41:04 am]
How to determine the unkn...
by
Hartmut
[February 10, 2026, 09:56:10 am]
Anchordocking - Window T...
by
janhsh
[February 10, 2026, 09:33:09 am]
Free Pascal for a small e...
by
dbannon
[February 10, 2026, 09:20:55 am]
Problem with Generic Cons...
by
SonnyBoyXXl
[February 10, 2026, 07:59:15 am]
[SHARE] Rotate and Flip b...
by
Xenno
[February 10, 2026, 07:37:56 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solved]how to use debug mode option (Read 661 times)
Packs
Sr. Member
Posts: 492
[solved]how to use debug mode option
«
on:
November 07, 2024, 10:56:34 am »
{$IFDEF DEBUG}
{$ELSE}
{$ENDIF}
I have compile the application in debug mode still it is not working .
«
Last Edit: November 07, 2024, 02:48:45 pm by Packs
»
Logged
cdbc
Hero Member
Posts: 2606
Re: how to use debug mode option
«
Reply #1 on:
November 07, 2024, 11:02:59 am »
Hi
You have to:
Code: Pascal
[Select]
[+]
[-]
{$DEFINE DEBUG}
somewhere in your unit, before the 'ifdef's, for them to have effect.
Regards Benny
Logged
If it ain't broke, don't fix it
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release & FPC Main -> Lazarus Main
Fibonacci
Hero Member
Posts: 788
Internal Error Hunter
Re: how to use debug mode option
«
Reply #2 on:
November 07, 2024, 11:08:34 am »
Go to Project Options and create release and debug modes, in debug mode add a custom option "-dDEBUG". A symbol defined with "-d" is visible in the whole project, not just in a unit like {$define ...}.
Logged
Packs
Sr. Member
Posts: 492
Re: how to use debug mode option
«
Reply #3 on:
November 07, 2024, 02:28:35 pm »
Thank you sir 🙏
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[solved]how to use debug mode option
TinyPortal
© 2005-2018