Questions tagged [debug-mode]

Debug-mode refers to running an application in a way that allows debugger to be attached to it. The debugger allows the application developer to perform stepping through the code, inspecting variables and other actions. These actions are known as debugging, usually used when developing application or tracking bugs. For example to run a java application in normal mode you would use

"java Main.class" 

To run the same application in debug mode you would use

"java -agentlib:jdwp=suspend=y,transport=dt_socket,address=8123,server=y Main.class"

this will cause the application to listen on port 8123 for debugger to connect to it.

121 questions
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
5
votes
2 answers

How to let the HotSpot VM be in debug mode?

The reason that I need the HotSpot VM be in debug mode, is that I want some JVM options, like -XX:+PrintCFGFile, be supported. My current JVM version is like java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1)…
JackWM
  • 10,085
  • 22
  • 65
  • 92
4
votes
3 answers

c++ compile error in debug but not in release

I'm trying to compile a small COM dll (using visual studio 2008 pro), and it compiles fine in release, but when I try to compile it in debug I get a compilation error: error C2664: 'bool (MyClass &, double)': cannot convert parameter 2 from…
Carl
  • 1,224
  • 2
  • 19
  • 35
4
votes
2 answers

why the chrome mobile debug mode set a much larger width of the html body rather than the device width?

I have an image element in an html body which width is 440 px and height is 840 px. Everything works as expected until I open the chrome debug mode to simulate it display in mobile device. screenshot with body width As the screenshot shows, the…
Martin Ma
  • 55
  • 1
  • 7
4
votes
1 answer

Django REST framework: Basic Auth without debug

Got a problem with Basic authentication in Django REST framework when debug mode is turned off. I am using Django 1.8.4 and Django REST Framework 3.2.2. Looks like it saves credentials for all computers with the same IP address when the first is…
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

OpenMP - Weird Result in Combination of parallel and SIMD namespaces

I have a C++ project which uses OpenMP, and in some place in the code I have #pragma omp simd nested inside #pragma omp parallel. There was a consistent crash in the code which happened only in multi-threaded runs compiled in debug mode (and not in…
Amit
  • 117
  • 7
3
votes
2 answers

Debug mode on iOS

been researching this a while and not sure entirely what to do. I want to allow users to switch debug mode either on or off. With debug mode on NSLogs will be printed to console. currently I can set debug mode on or off in the build settings using a…
IainNotAndrew
  • 136
  • 1
  • 2
  • 10
3
votes
3 answers

Pycharm returns non-asciii error on running in django server in debug mode, works fine when I run in normal mode

I have Django server running locally from quite some time. Suddenly today I started seeing error when runnign debug mode. it works fine in norrmal mode. I tried including utf-8 in manage.py but still I see error pydev debugger: process 10424 is…
Raj
  • 368
  • 1
  • 5
  • 17
3
votes
1 answer

abort(400) raising 500 internal server error - Flask 1.0

I have this function: if not (payload.get('password') == payload.get('password_cpy')): abort(400) when I run the app with flask run and debug is off, I get a pretty print of a BadRequest error which in raw shows the following…
3
votes
2 answers

Tried everything and can't turn off errors in CakePHP

I have tried everything I can think of to stop errors from displaying in CakePHP. I have checked the CakePHP instruction manual and have searched the internet and stackoverflow for phrases like "turn off error reporting in CakePHP" and "turn off…
faerie
  • 71
  • 2
  • 6
3
votes
1 answer

Cannot debug C/C++ code using eclipse as debug information is missing

I am trying to debug a C project in mint Linux using eclipse Galileo IDE. When I try to run the project in the DEBUG mode, the process terminates as it says- debugging information is missing. In the eclipse console following messages appear No…
osum
  • 805
  • 2
  • 10
  • 32
2
votes
2 answers

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 and keystore. I can create an apk file using…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
2
votes
1 answer

How to run some code based on release or debug build mode?

I have a variable(i.e bool releaseMode = false;) I want the value of the variable to be set based on whether we are in release mode(releaseMode = true;) else debug mode(releaseMode = false;)
2
votes
2 answers

How to rebuild Flutter widgets when device size changes, in release mode for Flutter View in Android app?

Update: I tried this with a regular 100% Flutter app and was not able to replicate it. In a Flutter View of an Android app, though, I logged the size and there's a log where it's 0x0. So it seems the below question is only applicable in this…
Mary
  • 18,347
  • 23
  • 59
  • 76
1
2
3
8 9