# Debug build / 64bit annoyance 

**URL:** <https://forum.xojo.com/t/debug-build-64bit-annoyance/37166>\
**Category:** General\
**Created:** [April 13, 2017, 5:22pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166 "2017-04-13T17:22:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [April 13, 2017, 5:22pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/1 "2017-04-13T17:22:32Z")

</div>

OK, it is the last straw that breaks the camel’s back !

With Xojo 2017r1 you can now compile to 64bit in runtime, which is great.  
But, it is super annoying (read: hair pulling, hair raising, shouting out annoying) that it compiles like it does when compiling for a build.

In my case compiling my bigger projects takes between 10min and 30min in Moderate (and hours in Aggressive). So when I forgot to set it back to ‘Default’ it starts to compile for a very long time.  
Again, this is utterly annoying. I have to force quit all the HoudiniAssistants to cancel the compiling, set to to Default and start compiling again.  
It happened to me a trillion time now. 😕

There is absolutely a huge need to have a separate compiling mode for runtime compiling. Xojo is really testing my nerves.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [April 13, 2017, 5:29pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/2 "2017-04-13T17:29:42Z")

</div>

Is it possible to change the optimization level with an IDE script? If it’s possible to disable the menu shortcut you could write an IDE script and use it for the build process.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [April 13, 2017, 5:32pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/3 "2017-04-13T17:32:26Z")

</div>

Tip #1  
Refactor methods that have hundreds or thousands of lines of code by refactoring them into small ones  
That has a HUGE impact on compilation speed since the more code paths there are through a chunk of code the longer it takes to compile & optimize (actually its likely the optimize time that is really slow)

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [April 13, 2017, 6:18pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/4 "2017-04-13T18:18:51Z")

</div>

[quote=326022:@Norman Palardy]Tip #1  
Refactor methods that have hundreds or thousands of lines of code by refactoring them into small ones  
That has a HUGE impact on compilation speed since the more code paths there are through a chunk of code the longer it takes to compile & optimize (actually its likely the optimize time that is really slow)[/quote]

Sorry, this is off-topic. I am aware and know why compiling is long when compiling to 64bit (especially using Moderate and Aggressive settings). That is not the problem.

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [April 13, 2017, 6:19pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/5 "2017-04-13T18:19:45Z")

</div>

Yeah, but the request here is  
‘one setting for building a release app, and a DIFFERENT setting for debug builds for testing’

Arguably this is slightly risky as it means you are debugging something not quite the same as the release, but even so it means you can debug quickly and only have a long wait when building to ship

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [April 13, 2017, 6:28pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/6 "2017-04-13T18:28:23Z")

</div>

With the old compiler debug and build were only marginally different in that a debug run included code to talk back to the IDE but few other differences from a final build  
But there is NO optimization whatsoever and so no real chance that a build could behave differently than a debug run

This is not the case with the new compiler because it does optimizations  
Its entirely plausible that a debug run with no optimization _could_ behave differently than a build with aggressive optimizations  
Being able to debug with the same settings you want to ship with is valuable - and IF you find such a thing something that SHOULD be reported ASAP

Since it is possible to debug with different optimization settings you should do what you can to minimize compile time  
Very large methods with thousands of lines of code are slow to compile & optimize  
If you can alter that to make everything faster to compile even with optimizations on then it would seem that would be a good thing

Hence I think this is on topic and relevant to your long compile times to debug

---

<div class="post-metadata">

**Author:** ![Travis\_Hill](https://forum.xojo.com/user_avatar/forum.xojo.com/travis_hill/32/3_2.png) [@Travis\_Hill](https://forum.xojo.com/u/Travis_Hill)\
**Post date:** [April 13, 2017, 7:46pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/7 "2017-04-13T19:46:39Z")

</div>

[quote=326031:@Jeff Tullin]Yeah, but the request here is  
‘one setting for building a release app, and a DIFFERENT setting for debug builds for testing’[/quote]

Yeah, it’s not an unreasonable request itself. They may end up distinct or different in some way as we wrap up our planned 64-bit support going forward.

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [April 14, 2017, 6:38am UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/8 "2017-04-14T06:38:12Z")

</div>

@ Norman:

I understand what you are saying, still there is a need for such new feature.  
One of my bigger projects largest Method has 262 codes lines (thank you for the new line numbering). Most are less then 50.  
This projects takes approx 8 minutes to compile in Moderate (that’s how I compile it for builds).  
You do understand that it is very cumbersome to wait 8 minutes to just test/debug at runtime?  
Yes, I can set it to Default when debugging but when I forgot this (and this happens a lot of times) I need to force quit all the HoudiniAssistants to make it stop compiling. Of course, a WORKING (read: immediately working) cancel button would do fine too.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [April 14, 2017, 12:57pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/9 "2017-04-14T12:57:24Z")

</div>

@Christoph De Vocht : yikes, how large is your project? My 50k-ish main project doesn’t compile noticeably slower on 64bit compared to 32bit for default optimization. Even on my 5 year old MacBook Air the compilation is about a minute or so.

There is no cancel button but pressing Cmd-. on the Mac works more or less.

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [April 14, 2017, 4:42pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/10 "2017-04-14T16:42:52Z")

</div>

> [@326104:@Beatrix Willius](#):
>
> My 50k-ish main project doesn’t compile noticeably slower on 64bit compared to 32bit for default optimization

In ‘default’ it compiles about the same as 32bit. Just try compiling with the Moderate settings… yours will take at least 10 minutes (probably a lot more).

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [April 14, 2017, 4:43pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/11 "2017-04-14T16:43:48Z")

</div>

> [@326104:@Beatrix Willius](#):
>
> There is no cancel button but pressing Cmd-. on the Mac works more or less.

That doesn’t work when you compile to 64bit in runtime.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:43pm UTC](https://forum.xojo.com/t/debug-build-64bit-annoyance/37166/12 "2020-10-29T18:43:44Z")

</div>


