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
TSQLquery does not save a...
by
egsuh
[
Today
at 08:52:36 am]
[SOLEVD] Unwanted additio...
by
CM630
[
Today
at 08:32:42 am]
ЛазМер/ LazMer for measur...
by
CM630
[
Today
at 08:22:23 am]
Compile auxilliary units ...
by
Wesbat
[
Today
at 08:17:22 am]
How to combine data from ...
by
Zvoni
[
Today
at 08:13:09 am]
Nested declarations insid...
by
440bx
[
Today
at 06:02:53 am]
Lazarus Pascal Keywords a...
by
dbannon
[
Today
at 05:34:52 am]
New old guy
by
TBMan
[
Today
at 04:00:47 am]
How to validate ParamStr(...
by
n7800
[
Today
at 03:29:56 am]
Why with allows assignmen...
by
440bx
[
Today
at 03:02:26 am]
SDL2: Runtime Error 216 o...
by
TRon
[
Today
at 02:52:21 am]
Lazarus Release Candidate...
by
calebs
[
Today
at 01:55:45 am]
MQTT Client
by
cdbc
[January 12, 2025, 10:48:04 pm]
SDL2 image rotation Probl...
by
Fred vS
[January 12, 2025, 09:30:11 pm]
FPC crashes after running...
by
jamie
[January 12, 2025, 09:20:00 pm]
Out of memory / filter tw...
by
BubikolRamios
[January 12, 2025, 08:32:02 pm]
rebuilding IDE fails
by
Martin_fr
[January 12, 2025, 08:24:54 pm]
How do I access data memo...
by
TBMan
[January 12, 2025, 08:10:18 pm]
Out of heap
by
BubikolRamios
[January 12, 2025, 07:53:17 pm]
Where do I get IdHTTP, ...
by
Thaddy
[January 12, 2025, 07:03:36 pm]
TSQLQuery with lookup fie...
by
dpap
[January 12, 2025, 06:56:57 pm]
Vulnerabilities lurking i...
by
tetrastes
[January 12, 2025, 06:25:19 pm]
[Solved]Help needed with ...
by
cdbc
[January 12, 2025, 06:01:02 pm]
Large or huge sets
by
Thaddy
[January 12, 2025, 05:22:06 pm]
Pascal and Musical Tones ...
by
Roland57
[January 12, 2025, 04:11:37 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solved]how to use debug mode option (Read 312 times)
Packs
Sr. Member
Posts: 390
[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: 1745
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: 643
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: 390
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