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

Entity Framework using more memory in Release mode

I am testing the memory usage of EF5 vs. EF6.1 (code first, POCO, ProxyCreation enabled) and came across some concerning behavior. My test is simple: 1) Check memory using GC.GetTotalMemory(false) 2) Run ~20 complex queries through different…
1
vote
2 answers

Visual C# 2010 Express Edition - When I press F5, do files created get stored?

I'm using Visual c# 2010 express edition, and I'm working around files a lot, there's writexml and there's filestream for txt write. The question is, when I press F5 and try out the program it writes the files correctly, but when I close, do the…
César Amorim
  • 367
  • 3
  • 16
1
vote
0 answers

Oracle.DataAccess.dll getting copied to Release folder despite Copy Local = false

I have a .NET solution which contains multiple projects. All the projects which refer the Oracle.DataAccess.dll have set Copy Local = false for it. When I build the solution in Debug mode, the dll does not get copied to bin\Debug folder but in…
Brij
  • 11,731
  • 22
  • 78
  • 116
1
vote
1 answer

Why "Optimize Code" is needed to be turned on for my program to run without crashing?

I was given this WPF application, when I tried to run the program in Debug mode it would crash before getting to Windows1.xml. I later tried running in Release Mode and it would run successfully. I narrowed it down to that, I needed to turn on…
avgbody
  • 1,382
  • 3
  • 15
  • 31
1
vote
1 answer

Crash in debug mode (F5) when calling a native C++ method

I am trying to call a C++ method by using LoadLibrary, GetProcAddress and GetDelegateForFunctionPointer. Everything is ok (in release and debug) if I run the .NET 4.0 application (Ctrl + F5). But when I start debug mode (F5), the program crash when…
NicoGDF
  • 97
  • 12
1
vote
2 answers

Visual Studio Release and Debug difference

I'm writing a code in which I read and image and process it and get a Mat of double/float. I'm saving it to a file and later on, I'm reading it from that file. When I use double, the space it requires is 8MB for 1Kx1K image, when I use float it is…
smttsp
  • 4,011
  • 3
  • 33
  • 62
1
vote
0 answers

network problems in release mode

i've been developing a cross-platform 3D multiplayer game with Ogre3D engine. by using C's own (send/sentto/recvfrom etc.) networking functions, I've created my own network structure. it supports both udp and tcp transport protocols. the game uses…
Alican
  • 286
  • 1
  • 8
0
votes
1 answer

How to set debug mode only in QtCreator?

When Qt builds my project, it tries to do it both in the debug and release modes. However, I'm using an external library which I only have in debug mode. I'd like then to prevent QtCreator from building my project in the release mode so I won't have…
Renan
  • 1,910
  • 4
  • 22
  • 36
0
votes
1 answer

ELMAH YSOD in production

I've recently implemented ELMAH in one of our production apps. It's really been a rather easy implementation and it's working flawlessly. However, I'm noticing the YSOD in prod isn't as telling as it is in dev. The main reason being that in prod we…
abend
  • 463
  • 4
  • 17
0
votes
0 answers

Can I compile a debug build in visual studio and specify not to zero out variables?

As the question says: Is there a setting in visual studio that will let me build and run in debug mode, but NOT initialize variables to zero? I run into too many problems when I go to release mode and have to hunt down the things that worked fine…
KiraHoneybee
  • 495
  • 3
  • 12
0
votes
0 answers

Tesseract Tess4J giving different results whether running in debug or run mode

I am running Tesseract in Java 11.0.16 (Tess4j 5.7.0) for getting all words from an image. The process uses no threads. If I run it on 'Run' mode I get list of 174 words. If I run the exact same one with the same image in 'Debug' mode with no…
Trantor
  • 1
  • 1
0
votes
1 answer

PHP - Laravel error : Symfony\Component\Finder\Exception\DirectoryNotFoundExceptionon my cPanel

I mistakenly ran my laravel application on debug mode in my production environment, and it threw an error for me to change App_debug:true to App_debug:false, which I did, ever since then, my site has been throwing an HTTP ERROR 500 "This page isn’t…
0
votes
0 answers

error when trying to run dash app in debug mode

While trying to run the Dash app I'm working in debug mode, the following unexpected error is thrown: * Serving Flask app 'app' * Debug mode: on Traceback (most recent call last): File "/..../anaconda3/lib/python3.9/runpy.py", line 197, in…
0
votes
0 answers

Show APP_KEY in Laravel debug mode

I'm trying to build a vulnerable Laravel webserver to exploit the CVE-2018-15133. To exploit this vulnerability, the webserver needs to print out the APP_KEY in the debug view of laravel. I've installed Laravel 5.5.40, which is vulnerable, and I was…
0
votes
0 answers

visual studio c++ release mode slower than debug mode for a loop incrementing a volatile

I have a very simple c++ program int main() { volatile int index = 0; for (int i = 0; i < 1000000000; i++) { for(int j = 0; j < 50; j++) { index++; } } } I compiled the code in release and debug mode…
1 2 3
8 9