Results 1 to 3 of 3

Thread: global compiler settings

  1. #1

    global compiler settings

    when im developing my project i run with an external debugger so i can see whats going on etc. i turn the debugging on with a {$DEFINE DEBUG} but i have to do that in every unit.

    is there a way to just do a {$DEFINE DEBUG} in 1 unit and have it working in all units?

    i tried with the .cfg file but it didnt work and was overwritten every time i saved

  2. #2
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    global compiler settings

    Hi tux,

    If its Delphi, you can define conditionals using the Project Options dialog in the 'Directories/Conditionals' tab.

    If its FreePascal, you can use the -d command line option for the compiler. -dDEBUG I believe (I've never used FreePascal, have just found that in the user manual online, so I could be wrong).

    Hope this helps.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  3. #3

    global compiler settings

    ah thanks. yes im using delphi

    i nearly had the awnser, instead of manually editing the .cfg file i put the debug definition in that box (i allways wondered what it was for).

    for anyone who's wondering, i entered DEBUG in the conditional defines, not -dDEBUG (its saved as -dDEBUG in the .cfg file)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •