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
1
vote
1 answer

StackoverflowException only in release-mode?

I installed VS2010 on Windows server 2008 R2 and started a Winforms app that makes an asynchronous WCF call for a rather big object graph (~25 Mb in XML) to services deployed on another machine. When I start in debug-mode in VS2010 (debug->start new…
Gerard
  • 13,023
  • 14
  • 72
  • 125
1
vote
0 answers

Safari: different bettween normal execution and debug mode

About the saving generated files on the client-side on Safari. I using the download attribute of for download the generated file var downloadLink = document.createElement('a'); var dataType = 'data:application/csv;charset=utf-8'; var filename =…
1
vote
0 answers

Why Swift is so slow in Debug mode

I realized Swift is very slow then Objective-C in Debug mode. I am using Xcode 11. The objective-c test code: @interface TestTests : XCTestCase @end @implementation TestTests - (void)testExample { [self measureBlock:^{ for (int i = 0; i…
Yanni
  • 580
  • 2
  • 6
  • 21
1
vote
2 answers

Why did additional pointer arguments disappear in assembly?

C Code: void PtrArg1(int* a,int* b,int* c, int* d, int* e, int* f) { return; } void PtrArg2(int* a,int* b,int* c, int* d, int* e, int* f, int* g, int* h) { return; } Compiling with gcc -c -m64 -o basics basics.c -O0 Running objdump -d…
1
vote
1 answer

VBA statements for pagesetup only executed in debug mode

The following sub is supposed to prepare pagesetup for a PDF output. For instance, if due to other attached printers the pagebrakes are messed up, the sub should fix it back to 1 page wide and 3 pages tall. Sub adjustPB(ws As Variant, ps As…
Mike
  • 40
  • 6
1
vote
0 answers

XXH64 function has different value in debug mode and release mode

XXH_PUBLIC_API unsigned long long XXH64(const void* input, size_t len, unsigned long long seed) { #if 0 /* Simple version, good for code maintenance, but unfortunately slow for small inputs */ XXH64_state_t state; XXH64_reset(&state,…
eun
  • 11
  • 1
1
vote
1 answer

Why TextWriterTraceListener can't work in release mode?

This program can work on debug mode but can't work on release mode: static void Main(string[] args) { Trace.Listeners.Add(new TextWriterTraceListener(@"c:\prog\a.txt")); Debug.AutoFlush = true; Debug.WriteLine("abc"); …
wang kai
  • 1,673
  • 3
  • 12
  • 21
1
vote
1 answer

How to Turn on/off debug mode using adb command in android

I don't know it is possible or not to turn ON/OFF android debug mode using adb command. Is there really any adb command exist to turn ON/OFF android debug mode. Please if any suggest or any kinds of way around will be highly appreciated.
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
1
vote
3 answers

VS2010 Debug build works, but Release does not

I have an app that I've recently added two C# classes to. It always built in both debug and release. The differences between the two configs are nothing. Now when I build the release, it says that one of the dependencies cannot be accessed. This is…
1
vote
1 answer

How to work around missing PyModule_Create2 in AMD64 Win Python35_d.lib?

I'm trying to debug an extension module that worked fine in 32 bit Python 2.7, but not so fine in 64 bit Python 3.5. I've used the AMD64 Web installer from Python.org, and yet in the link I get __imp_PyModule_Create2 (referenced in…
Peter Du
  • 548
  • 1
  • 10
  • 20
1
vote
1 answer

App is crashing in release mode only

I have searched previous questions but they did not work. I got these crash details from device logs: Incident Identifier: 3D66D-F1B54CC2449 CrashReporter Key: 4c95be7dfa542494f103b1ef Hardware Model: iPhone7,1 Process: …
Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
1
vote
1 answer

Code for debug mode is not compiled when publishing

There're places where I use #if DEBUG compiler directive to choose which code to compile. Until just a little while ago I was able to publish my ASP.NET MVC application in either Debug or Release mode. In fact I can still do that. But now, for some…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
1
vote
0 answers

Socket - Address already in use on free socket - BUT only if not in debug mode

I wrote a java program that is listening on a socket. ... int port = getPort(); ServerSocket server = new ServerSocket(port); server.accept() ... It works fine over a decade or so, with Java 1.4, 5 and 6. But with Java 7 or 8 the constructor always…
Gren
  • 1,850
  • 1
  • 11
  • 16
1
vote
0 answers

Link to release runtime in debug mode

I have code which only works in debug mode thanks to some faulty third party library. Since I use quite a bit of std::vector, the code is rather slow in debug mode (since it uses the debug STL), and now someone said to use the runtime libraries…
SinisterMJ
  • 3,425
  • 2
  • 33
  • 53
1
vote
3 answers

OnCtrlColor Not Working?

I used the following overloaded method to change the text color to red in a listbox, in a Visual C++ MFC dialog based application. When I build the program in DEBUG mode, it works perfectly. But when I use the RELEASE mode the text color doesn't…
Isuru
  • 182
  • 1
  • 2
  • 11
1 2 3
8 9