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
114
votes
31 answers

Unable to open debugger port in IntelliJ IDEA

I have a problem that I can not set up my application in debug mode with IntelliJ IDE, but run mode is OK. My OS is Windows 7, IDE is IntelliJ IDEA, web container is Tomcat 6. I have tried for a long time, changed the HTTP port and the JMX port,…
feng smith
  • 1,487
  • 2
  • 9
  • 22
74
votes
18 answers

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?
Benny
  • 8,547
  • 9
  • 60
  • 93
58
votes
20 answers

Why does adb return offline after the device string?

I use "adb devices" to get following result. Only one device is connected to PC by USB, but we get 8 lines of result. Could anyone suggest the reason? WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 …
susantjs
  • 939
  • 2
  • 10
  • 19
53
votes
6 answers

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#/.Net 3.5. Is there any way to achieve this?
born to hula
  • 1,274
  • 5
  • 18
  • 36
46
votes
5 answers

Speeding up Tomcat in debug mode with Eclipse IDE

Running Tomcat through eclipse works fine in non-debug mode, but not in debug mode. When I try to start the Tomcat server in debug mode, the console output looks fine for a while, but then starts slowing down and eventually just stops, pegging the…
andersonbd1
  • 5,266
  • 14
  • 44
  • 62
25
votes
5 answers

Visual Studio freezes when switching to debug mode

Strange Visual Studio (TS 2008) problem: The IDE completely freezes whenever I switch from Release to Debug mode in a specific project. It happens right as I switch, before I try to build or do anything else. The whole thing started out of the blue,…
cvb
  • 4,321
  • 6
  • 26
  • 19
21
votes
3 answers

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 i can tell). The size in debug mode is slightly…
PeterK
  • 6,287
  • 5
  • 50
  • 86
13
votes
2 answers

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 Debug mode, but when compiled in Release mode the…
Chris
  • 8,030
  • 4
  • 37
  • 56
8
votes
3 answers

How to pass global debug flag variable throughout my code; should I use argparse?

Let's say I have a main program (test.py) and a little utilities program (test_utils.py) that has helper functions called by the main program. I would like to turn on debug statements in the code by passing a debug_flag boolean, which is read in via…
Craig
  • 1,929
  • 5
  • 30
  • 51
8
votes
1 answer

Odoo 10 Developer mode and developer mode with assets

I'm new on Odoo v10. I'm using the debug mode with URL. But on the settings menu there is links to activate developer mode. I want to ask, What is the difference between "Activate the developer mode" and "Activate developer mode ( with asset)"?…
ahmetureme
  • 85
  • 1
  • 6
8
votes
4 answers

Laravel 5. Debug mode

I set debug mode to true in config->app and deployed it on the server: 'debug' => env('APP_DEBUG', true), I have following code in Controller to check the mode: ... $debug = config('app.debug'); var_dump($debug); $product->save(); Result on local…
Svetoslav Dimitrov
  • 869
  • 4
  • 16
  • 38
7
votes
1 answer

Debugging two projects in two instances of Visual Studio at the same time

When I try to open two projects in two different instances of Visual Studio and run both of them locally in debug mode at the same time (say, a web application and the backend WebService that it uses) I get the error "Unable to start debugging on…
6
votes
1 answer

getDeclaredConstructors0(boolean)- line not available during tomcat startup in debug mode

I have some trouble with my spring managed tomcat application. There is a UserDao that is responsible for some User database operations. If I start the tomcat I get this message: Thread [pool-2-thread-1] (Class load: UserDao) …
nano_nano
  • 12,351
  • 8
  • 55
  • 83
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

In the playground, how to turn off debug mode?

I wanted to disable debug mode in Xcode 6 playground, but can't find how to do it. Is it possible at all?
nicael
  • 18,550
  • 13
  • 57
  • 90
1
2 3
8 9