Forum > Editor
Debug and Release build modes [SOLVED]
YiannisKam:
Ok, final comment here as I managed to solve the problem by editing manually the projectoptions.xml file.
--- Code: XML [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- <BuildModes> <Item Name="Debug" Default="True"/> <Item Name="Release" Default="False"/> </BuildModes>For some reason which I have no idea why the <Item Name="Release" Default="False"/> was missing.
I hope this helps if someone has the same issue. Just navigate into your lazarus installation folder and inside the config_lazarus folder resides the projectoptions.xml file
PeterX:
--- Quote from: YiannisKam on March 04, 2023, 09:07:57 pm ---.. I have to do the same steps every time I create a new project. I don't want that, I want my configurations to persist and have my Debug and Release always fixed.
Is there any way to achieve this?
--- End quote ---
Sorry for stepping in here this late .. I use a separate INCLUDE file with .. for example:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$IFDEF DEBUG_VERSION} // Compiler Switches: {$ASSERTIONS ON} {$DEBUGINFO ON} // Include debugging symbols // {$HINTS ON} // keep hints ON .. // {$IOCHECKS ON} // Include Input/Output checking. {$OVERFLOWCHECKS ON} // enabling overflow checking slows down your program .. ! {$RANGECHECKS ON} // enabling range checking slows down your program .. ! {$Warnings ON} // allow warnings .. // {$ELSE} // Compiler Switches: {$ASSERTIONS OFF} // same as $C- {$DEBUGINFO OFF} // no debugging symbols {$HINTS OFF} // no short switch defined in Delphi {$IOCHECKS OFF} // same as $I- {$OVERFLOWCHECKS OFF} {$RANGECHECKS OFF}{$ENDIF}
Indeed this is a little bit "OldStyle", but works for me :)
YiannisKam:
Interesting, thank you
Navigation
[0] Message Index
[*] Previous page