Questions tagged [release-mode]
an ide or build setting requesting builds without debug objects
151
questions
65
votes
18answers
26k views
Common reasons for bugs in release version not present in debug mode
What are the typical reasons for bugs and abnormal program behavior that manifest themselves only in release compilation mode but which do not occur when in debug mode?
58
votes
5answers
41k views
C# release version has still .pdb file
I want to deploy the release version of my application done in C#.
When I build using the Release config, I still can see that .pdb files are produced, meaning that my application can be still ...
43
votes
6answers
21k views
How to check if an assembly was built using Debug or Release configuration?
I'm starting deployment of my web application and I need to guarantee that all the assemblies that are going to be deployed were built using Release configuration. Our system was developed using C#/....
38
votes
4answers
57k views
Linker error LNK2038: mismatch detected in Release mode
I am trying to port a small app of mine from Win XP and VS 2005 to Win 7 and VS 2010.
The app compiles and runs smoothly in Debug mode, however in Release mode I get the following error:
pcrecpp.lib(...
32
votes
2answers
30k views
How to debug in release mode?
I have to debug a c++ project, but as one dependency doesn't compile in debug mode and I haven't been able to fix that issue so far, I'd like to try to debug the project in release mode.
Currently ...
30
votes
2answers
30k views
Why are my binaries not placed in the /bin/release folder when I build a Windows Service in C#?
I am new to C# and VS 2010, and am following an online guide to creating a C# Windows Service in Visual Studio 2010.
When I try and build the application however, I don't get any files created under ...
19
votes
3answers
6k views
Release mode static library much larger than debug mode version
today i found out that the compiled static library i'm working on is much larger in Release mode than in Debug. I found it very surprising, since most of the time the exact opposite happens (as far as ...
13
votes
2answers
2k views
Different results with Haar cascade when in release/debug mode
I am using a Haar cascade classifier trained from the MIT cars dataset to detect vehicles in OpenCV (trained using the utilities provided with OpenCV). This works reasonably well when compiled in ...
11
votes
3answers
4k views
Swift behaves differently on debug and release mode
Not sure if that's an issue with Swift, XCode or Alamofire but I recognized strange behavior on different places within my mixed Swift/Objc app. It only happens in parts which are written in Swift and ...
10
votes
6answers
7k views
How to find out if a .NET assembly was compiled with the TRACE or DEBUG flag
Is there any way to find out if an assembly has been compiled with the TRACE or DEBUG flag set without modifying the assembly?
9
votes
3answers
10k views
App on release crashes, while on debug doesn't
I'm developing an app using Android Studio, and when I switched from debug to release build variant, it began to crash. While on debug it doesn't happen anything at all. The real problem is that I can'...
8
votes
3answers
13k views
How to generate PDB's for .net managed projects in release mode?
I know PDBs are generated for managed projects in .NET by giving the compiler the /debug argument.
Is there a way to specify this in the VS (2005) GUI?
The only way I could get it to generate PDBs ...
7
votes
1answer
1k views
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 ...
6
votes
5answers
3k views
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 ...
6
votes
1answer
3k views
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 ...
6
votes
1answer
1k views
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
...
6
votes
0answers
6k views
Build release mode in Android studio [duplicate]
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? ...
5
votes
2answers
1k views
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 = ...
5
votes
1answer
540 views
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 ...
5
votes
0answers
1k views
The service did not respond to the start or control request in a timely fashion if Debug dll used
I was trying to deploy a windows service on my machine, but when I was trying to start it I got following error.
"Windows could not start the 'myService' on Local Computer. Error 1053: The service ...
4
votes
5answers
11k views
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 ...
4
votes
2answers
6k views
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:...
4
votes
2answers
2k views
Why won't Android Studio create my AAR file in release mode
Using Android Studio, I have an Android library project which produces 'library/build/outputs/aar/MyLIB.aar" just fine in Debug mode, but does not do so in Release mode. I see no errors, just "BUILD ...
4
votes
1answer
1k views
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 ...
4
votes
1answer
1k views
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 ...
4
votes
1answer
1k views
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 ...
3
votes
7answers
1k views
Visual C++ - Why bother with Debug Mode?
So I have just followed the advice in enabling debug symbols for Release mode and after enabling debug symbols, disabling optimization and finding that break-points do work if symbols are complied ...
3
votes
3answers
517 views
Visual C++ express 2008: Why does it places megs of null bytes at the end of the release executable?
Recently I have discovered that my release executable (made with msvc++ express 2008) becomes very large. As I examine the executable with a hex viewer I saw that only the first 300k bytes contains ...
3
votes
1answer
72 views
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"
}
...
3
votes
1answer
449 views
jQuery crash because of bundle minification in release mode
I have jquery bundle:
bundles.Add(new ScriptBundle("~/bundle/jquery").Include(
ScriptsPath("jquery-2.0.3.js"),
ScriptsPath("jquery.validate.js"),
...
3
votes
1answer
366 views
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 ...
3
votes
0answers
773 views
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) != ...
2
votes
10answers
443 views
How to comment lines automatically in release mode?
I need to have some lines of code "active" in debug mode only, and ignored in release mode.
Is there a way to do something like this:
#include <iostream>
using namespace std;
#ifdef _TEST_
#...
2
votes
1answer
4k views
Eclipse CDT and Debug/Release Modes
I just got a simple "Hello, World!" C program to build and compile in the Eclipse CDT plugin. When you go to create a new C project, or when you go to set up a Run Configuration for an existing C ...
2
votes
1answer
1k views
Using XMVECTOR from DirectXMath as a class member causes a crash only in Release Mode?
I've been trying to use XMVECTOR as a class member for a bounding box, since I do a lot of calculations, but I use the XMFLOAT3 only once per frame, so the bounding box has a method that gives me it's ...
2
votes
2answers
455 views
Disadvantages to release Flash application which was compiled in debug mode
I want to release my flash application not in release mode but in debug mode
to see result of trace() after releasing the app.
I don't care that debug mode makes processing speed little slow.
Except ...
2
votes
2answers
666 views
Android / Eclispe: how to run my app on device or emulator in release mode ? (if any…)
I am currently finishing the development of my Android app. I tested it extensively on both my Android phone and the emulator using my debug MD5 key and debugkeystore.
I generated a release MD5 key ...
2
votes
1answer
3k views
Android: app crashed when starting after signing in release mode
Currently I am facing an issue of app crashing when starting after signing in release mode,
but in debug mode it worked fine.
I could not figure out the problem right now,
even though i did research ...
2
votes
2answers
388 views
Angular halting after first ng-include in release mode
I'm compiling an angular app using the yeoman/generator-grunt-angular system, which I have modified slightly to accommodate code shared with another app. "Release mode" is compiling all of the ...
2
votes
2answers
4k views
Visual Studio 2008 Breakpoint will not be hit
I have a bug that only occurs in release mode, which is a problem because I am not able to regularly debug my code. The breakpoint says "The breakpoint will not currently be hit. No symbols have been ...
2
votes
2answers
2k views
Silverlight 4 application shows blank page in release build
I'm working on a fairly large Silverlight 4 application (42 projects in 1 solution), and I'm wrestling with a really strange issue.
The application works fine in a debug build, and even in release ...
2
votes
1answer
1k views
UWP unhandled exception only in Release mode
I've been struggling for a week with a bug in my published UWP app that only seems to manifest itself in release mode when deployed on phones (ARM target). It randombly crashes the app when navigating ...
2
votes
1answer
737 views
Compiler optimization breaks code
For the past couple of hours I've been trying to track down a bug in my program, which only occurs when running it in release mode. I've already resolved all level-4 compiler-warnings, and there are ...
2
votes
2answers
2k views
fixing libvlc release mode crash with VC2010
I am using libVLC in one of my apps which I am compiling with VC2010 (also tried VC2008), the debug mode of my app works great but as soon as I compile to release mode and try to call into libVLC I ...
2
votes
2answers
1k views
Problem drawing graphics to user control
My application pops a form as a child of the main form. On the form is
User Control with a Panel where Graphics are rendered. When executed
from Visual Studio in debug mode the drawing is often ...
2
votes
1answer
4k views
VS2005 nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
I get this error when i build a project which have static library input (.lib). The problem is that I can run the project successfully in debug but can't run in release mode.It shows the error as ....
...
2
votes
1answer
61 views
publishing debug versions of asp.net dlls
I'm a little confused about using release vs. debug versions of a dll for a live site. We have code written so that when the site experiences an uncaught exception it runs through the exception and ...
2
votes
0answers
217 views
MessagingCenter stops working in UWP release mode
I am working on an issue with UWP application with Xamarin.Forms. I have noticed that when I set the build configuration to Release mode MessagingCenter class stop working without crashing but in ...
2
votes
1answer
222 views
UWP - Reflection_InsufficientMetadata_EdbNeeded in Release build
I have a barebones UWP solution that highlights my issue at hand. When I run the app in Debug mode, it runs fine; in Release mode, I receive the following error:
Based on my search so far, it seems ...
2
votes
1answer
133 views
MSVS2013 - Neon intrinsics VTBL2: different result in debug mode vs release mode. How can I fix this?
I've cobbled together a neon equivalent to the SSE2 intrinsic _mm_shuffle_epi8.
The code I currently have for this purpose is:
static __forceinline __n128 shuffle8(
const __n128&...