Questions tagged [release-mode]

an ide or build setting requesting builds without debug objects

typical hallmarks of this mode: optimized compilation, different linking, omitted debugging artifacts

known environments where this concept applies: eclipse, visual studio, maven

177 questions
7
votes
0 answers

Build release mode in Android studio

How do I build my app in release mode in Android Studio for publishing to Google Play store? It's not obvious to me. If I use the Export Signed app wizard, does it automatically build in release mode? How do I verify if the app is built in release…
superkinhluan
  • 733
  • 7
  • 23
7
votes
1 answer

What is the real benefit of release mode for ASP.Net

I know there are several questions asking the same question "Why should I use release mode". The problem I have with the answers is that they simply state, quite strongly, that you should always use release mode when a website is in production.…
Khanzor
  • 4,830
  • 3
  • 25
  • 41
6
votes
1 answer

Firebase No properties to serialize found with object in release mode

I've written a method for pushing real-time location data to Firebase: private void writeNewMarker(int sessionType, String myUuid, String datetime, Location location) { locationToDB = new LocationFromAndroid(); JSONObject jsonObjectCoords =…
Bart Ros
  • 419
  • 5
  • 14
6
votes
1 answer

C++ defines for a 'better' Release mode build in VS

I currently use the following preprocessor defines, and various optimization settings: WIN32_LEAN_AND_MEAN VC_EXTRALEAN NOMINMAX _CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_WARNINGS _SECURE_SCL=0 _HAS_ITERATOR_DEBUGGING=0 My question is what other…
Matthieu N.
5
votes
5 answers

iPhone app crashes only in Release mode on 3G

I have an app I'm writing that crashes when I call addSubview on a UIScrollView with "EXC_BAD_ACCESS". It only does this on iPhone 3G in release mode and only on the device. I works fine in all these other configurations: iPhone 3G - Debug…
whitehawk
  • 2,429
  • 29
  • 33
5
votes
2 answers

Change constant values when building a release edition

I'm developing in eclipse using ADT for android. In my application I have some constants which help me to to debug my app easily. As an example I have: public static final boolean DEBUG_TOAST_LOGS = true; which help me to toast some logs on the…
shokri
  • 51
  • 1
  • 4
5
votes
1 answer

Android apk Debug mode works fine but release mode gives too many warnings

I'm trying to get a signed APK from eclipse. I have a debuggable apk version that works fine. Now for release when I tried to compile and sign with Eclipse ADT, I get many warnings, most of which is can't find superclass or interface…
ranjjose
  • 2,138
  • 1
  • 24
  • 46
5
votes
5 answers

Different results between Debug and Release

I have the problem that my code returns different results when comparing debug to release. I checked that both modes use /fp:precise, so that should not be the problem. The main issue I have with this is that the complete image analysis (its an…
SinisterMJ
  • 3,425
  • 2
  • 33
  • 53
4
votes
1 answer

WCF @ServiceHost Debug="true" but web.config compilation="false"

I have been looking in the MSDN docs but have not found a concrete answer. Does the Debug property in @ServiceHost override the Web.config's compilation attribute or does the the web.config attribute override all? Thanks.
SirPyros
  • 350
  • 1
  • 2
  • 9
4
votes
2 answers

Implicit declaration of function 'DLog' is invalid in C99

I used a macro version of NSLog from here, http://objdev.com/2014/06/debug-logging like this, #ifdef DEBUG #define DLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__]) #endif It was working fine, until I…
Hemang
  • 26,840
  • 19
  • 119
  • 186
4
votes
1 answer

App crashes in release mode only, how to configure proguard?

My app crashes in release mode only, due to proguard (confirmed, I disabled it and worked)... I see somebody had the same problem and tried some solutions like this one: Android: app crashed when starting after signing in release mode . I first…
glass
  • 159
  • 2
  • 12
4
votes
1 answer

Windows Phone 8 background agent only runs when using a debug build (seems to not be running on a release build)

This is a weird one. My Windows Phone 8 app's background agent seems to be updating absolutely fine throughout the day when I'm running a debug build. However, when I change to a release build, it either doesn't run at all or very infrequently. This…
4
votes
1 answer

Interlocked.Increment vs lock in debug vs release mode

I was testing how Interlocked.Increment and lock behave on my computer's architecture because I read the following lines in this article. As rewritten with Interlocked.Increment, the method should execute faster, at least on some architectures.…
Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
3
votes
0 answers

App runs fine in Debug mode but crashes in Release mode with sqlite

I have a problem with an app developed using Xcode. It runs well in Debug but crashes in Release on a SQLite statement: if (sqlite3_prepare_v2(database, sql, -1, &init_statement, NULL) != SQLITE_OK) { NSAssert1(NO, @"Error: failed to prepare…
huan
  • 31
  • 1
3
votes
1 answer

Identify debugging in VisualStudio

I have an interesting problem. Is it possible to identify if an assembly is running in Visual Studio? Look at the following code. if(FoundThatYouAreDebuggingInVisualStudio) { Print "Hello" } else { Print "Hi" } The above code is present…
1
2
3
11 12