Questions tagged [debug-build]
32 questions
8
votes
4 answers
"application configuration is incorrect" and "side-by-side configuration is incorrect" running VS2008 64-bit debug build
I am working on a 64-bit OS windows 7 ultimate machine VS2008 with 64bit addon.
I have successfully build my projects in both 32 & 64 bit, debug and release config.
The 64 bit debug is not launching; it gives the error:
Unable to Start program xxx
…

Kashish
- 143
- 1
- 2
- 10
4
votes
8 answers
C# - Is there really a need for debug build in .net
If the release version produces .pdb files and you can step into every line, put breakpoints etc then why ever bother to build a "debug" version of my components?
I'm using c# for my projects and i didn't have problem debugging release versions. In…

Adi Barda
- 3,259
- 11
- 32
- 33
4
votes
0 answers
Assembler - why midpoint in calling functions?
I'm analyzing simple application in C++:
int add(int a, int b)
{
return a + b;
}
int main()
{
int res = add(5, 8);
return 0;
}
Its disassembly compiled in debug mode looks like following:
5:
6: int main()
7:…

Spook
- 25,318
- 18
- 90
- 167
4
votes
2 answers
Managing/Using libraries with Debug builds vs Release builds
I'm curious about everyones practices when it comes to using or distributing libraries for an application that you write.
First of all, when developing your application do you link the debug or release version of the libraries? (For when you run…

Dewm Solo
- 671
- 2
- 7
- 13
4
votes
4 answers
Inverse Heisenbug - Unit test fails only when debugger is attached
I recently fixed a defect in our product, the symptom of which was an access violation caused by accessing a dangling pointer.
For good practice I added a unit test to ensure that the bug doesn't come back. When writing a unit test I will always…

LeopardSkinPillBoxHat
- 28,915
- 15
- 75
- 111
4
votes
3 answers
Running vc2008 debug builds on non-dev machines
I'm building my app in vc2008 and testing it on a network of machines.
Is there any way, other than installing Visual Studio 2008, to run a debug build of a C++ program on another machine? (i.e. that doesn't have vc2008 installed)
Installing the…

user33847
- 163
- 1
- 3
- 8
3
votes
1 answer
What does CMAKE_BUILD_TYPE affect, other than the compiler flag selection?
I know that if if we set -DCMAKE_BUILD_TYPE=Release (or Debug etc.), then the values of CMAKE_C_FLAGS_RELEASE and CMAKE_CXX_FLAGS_RELEASE will be appended to CMAKE_C_FLAGS and CMAKE_C_FLAGS respectively.
But is this the only effect of setting the…

einpoklum
- 118,144
- 57
- 340
- 684
2
votes
5 answers
How can I link against the debug/release libraries automatically in VC++ 6.0?
I am trying to maintain a program written 5 years ago in VC++ 6.0. It uses our 'common' libraries. The trouble I have is that it either links against the debug version of these libraries or the Release version, depending on whether I have the…

user41013
- 1,251
- 2
- 16
- 25
2
votes
1 answer
What should I do in CMakeLists.txt w.r.t. the build type?
I'm the author of some library which gets built using CMake.
If a user specifies a build type they run cmake - I can oblige that, no problem.
But what is the best practice when a user doesn't specify a build type?
Should I just ignore it?
Should I…

einpoklum
- 118,144
- 57
- 340
- 684
2
votes
2 answers
Function having release version inline on h file and debug version implemented on cpp
I am maintaing a legacy MFC application and I see a pattern exactly like the one on Object-Oriented Programming under Windows book, where the relevant part is:
Persview.h
#ifndef _DEBUG // debug version in persview.cpp
inline CPersDoc*…

sergiol
- 4,122
- 4
- 47
- 81
2
votes
0 answers
How to trigger a release build after a debug build in VS2015
Since I need to launch a release build after every debug build I'd like to have it scripted. Is there any way in VS2015 to force a release build after a debug one?

Gianluca Ghettini
- 11,129
- 19
- 93
- 159
2
votes
1 answer
What does ConditionalAttribute on an Attribute do?
I know what ConditionalAttribute does.
The docs say it can also be applied to a class, if it's derived from Attribute:
[Conditional("DEBUG")]
public class FooAttribute : Attribute { }
But how does that custom attribute behave? (Is it stripped out…

h bob
- 3,610
- 3
- 35
- 51
1
vote
1 answer
After running a project in Qt Debug build, the binary (exe) disappears and object files are shrunk. How to fix that?
My Qt Creator is 4.11 which is based on Qt 5.14 in Ubuntu 17.04. Due to ongoing development, I have not updated Qt Creator and Ubuntu to avoid disturbing the working setup.
Whenever I run it in Debug build mode, it compiles fine and runs the…

iammilind
- 68,093
- 33
- 169
- 336
1
vote
1 answer
My language translation are not working in debug build
My language translation are not working in debug build, However It works fine in release build, I checked and got a workaround to set the language dynamically inside activity class, but I don't want to do this since it work fine in the release…

HAXM
- 3,578
- 4
- 31
- 38
1
vote
2 answers
Debbugable Android App
I have the following error when I try to publish on google play.
You uploaded a debuggable APK. For security reasons you need to
disable debugging before it can be published in Google Play
I ve set the Manifest.xml to debbugable=false but it…

S. Georgian
- 143
- 1
- 2
- 11