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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
OverLapping Snowflake Fra...
by
Boleeman
[
Today
at 08:53:49 am]
[SOLVED] StringGrid color...
by
Vodnik
[
Today
at 08:26:44 am]
The Form cannot be resize...
by
daxnet
[
Today
at 04:11:54 am]
YM Player
by
TRon
[
Today
at 02:32:16 am]
How single procedure ends...
by
Marion
[
Today
at 01:57:43 am]
Python4Lazarus Undefined ...
by
Grew
[
Today
at 01:57:41 am]
ct2laz - convertor betwee...
by
Sharfik
[
Today
at 01:26:03 am]
Amigo programming languag...
by
maurog
[December 02, 2024, 11:19:44 pm]
[SOLVED] How to document ...
by
korba812
[December 02, 2024, 10:49:39 pm]
AVRPascal – free code edi...
by
ackarwow
[December 02, 2024, 10:18:22 pm]
storing string
by
Remy Lebeau
[December 02, 2024, 09:46:56 pm]
How do you know wich vers...
by
Warfley
[December 02, 2024, 08:32:11 pm]
Unable to find file "date...
by
Cumberland
[December 02, 2024, 08:27:29 pm]
Common File Dialogs Have ...
by
rvk
[December 02, 2024, 07:33:14 pm]
Developing a Kernel Modul...
by
nicolap
[December 02, 2024, 05:37:05 pm]
LazMapView - adding a sca...
by
alpine
[December 02, 2024, 05:26:28 pm]
[SOLVED] Howto use a DEFI...
by
tintinux
[December 02, 2024, 04:55:13 pm]
ZDataset.Locate + loParti...
by
tintinux
[December 02, 2024, 04:47:48 pm]
Strange memory allocation...
by
MathMan
[December 02, 2024, 03:40:40 pm]
Best UI to adopte while d...
by
marcov
[December 02, 2024, 02:42:45 pm]
Random SnowFlakes:
by
Boleeman
[December 02, 2024, 12:24:18 pm]
AY_FLY Library
by
Thaddy
[December 02, 2024, 11:50:21 am]
Hustle - A simple task ma...
by
MarkMLl
[December 02, 2024, 11:37:20 am]
How much would it hamper ...
by
Thaddy
[December 02, 2024, 11:36:24 am]
Lazarus MDI application.
by
Fred vS
[December 02, 2024, 11:25:21 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solved]how to use debug mode option (Read 253 times)
Packs
Sr. Member
Posts: 364
[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: 1644
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 -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0
Fibonacci
Hero Member
Posts: 594
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: 364
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