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
0
votes
0 answers

Is that a way to found out what line code the JVM is currently executing in debug mode

I'm working on a project that take too much time in startup (in debug mode) to finally stops at my break points. The project is huge! and I need to know whats taking so much time everytime i run it so i can disable this blocking treatment in dev…
0
votes
0 answers

Can't run Java program in debug mode Eclipse

When I run my program in Eclipse normally, it runs fine, but I want to run it in debug mode. When I attempt to do so, I get the error: *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message can't find transform methodID at…
VArchive
  • 13
  • 3
0
votes
1 answer

C++ Builder debugger creates too many threads

What I got: Server console 32bit application written in ANSI C (free open-source multiplayer game); Application runs in Embarcadero C++ Builder 10.3 in 'Debug mode'; Server OS: Windows Server 2012 R2 64bit. Sometimes there appears CPU load…
0
votes
2 answers

Checking if Debugger is present in c++ dll (loaded in C++/CLI wrapper)

I'm checking if a debugger is present in my c++ dll with method if(IsDebuggerPresent()) // set dll name to debug When I load this dll in my C++/CLI wrapper (debug mode in VS) the method always returns false (release) -> why is it so? (or which code…
leon22
  • 5,280
  • 19
  • 62
  • 100
0
votes
1 answer

Crash in debug mode along with CDB process termination, but release mode is fine

My application builds and runs fine in Release mode. However, in Debug mode, my application crashes. When trying to use debugger to pinpoint the crash cause, such error is received: Qt Creator unexpected CDB exit The CDB process terminated What…
Megidd
  • 7,089
  • 6
  • 65
  • 142
0
votes
1 answer

Release mode causes infinite looping in loop that works in debug mode

So below is a while loop that works in debug but endlessly loops in release mode. Ans FindMaxProj(PolyShape& S,Matrix& N, Matrix& cg, int StartInd){ MaxFound=false; MaxIndInit=StartInd; …
0
votes
0 answers

crash when in release mode when writing to a global array defined in main.cpp from a dialog

I am having a strange issue with a C++/QT programming I am writing In my program I have two UIs one for the main window and one for a dialog that is popped up when a action is selected from a menu off a qtreeview. The dialog is supposed to be used…
0
votes
1 answer

How to start Bokeh server programmatically in dev / debug mode

I'm still developing my project and I want to make a lot of changes to UI through HTML/CSS, I'm starting the Bokeh server programmatically and it looks like this: from tornado.ioloop import IOLoop from tornado.web import StaticFileHandler from…
Ahmad
  • 13
  • 2
0
votes
1 answer

How to have the BuildConfig.DEBUG value of the final app from a lib/sdk

Is the value of BuildConfig.DEBUG general or related to my lib? More info: I'm developing a lib/sdk, this sdk is built and deployed in a repository. The final app includes this deployed sdk. Question: Is it possible to read the BuildConfig.DEBUG…
0
votes
0 answers

React Native app runs in debug mode without metro bundler starting, can't get to developer menu

I am able to start and run my react native app normally. However, I noticed that I am not able to use debug mode because I can't reach the developer's menu. I've attempted to reset the cache via npm start -- --reset-cache I've also tried removing…
VK1
  • 1,676
  • 4
  • 28
  • 51
0
votes
2 answers

How do I call a program or code which has main in debug mode?

I have a CPP program (let's call it program 1) which calls another CPP program (Program 2). This Program2 is built in debug mode. That is: int main(int argc, char** argv) { ///Function body# eerot[0] = atof(argv[1]); eerot[1] =…
0
votes
0 answers

How to debug my Grails application in IntelliJ?

I am using this specific command to run my Grails application clean bootRun -Dgrails.env=test. I would like run my application (with the same configuration) in debug mode from IntelliJ. What Run/Debug configurations should be used to run the app…
Ababneh A
  • 1,104
  • 4
  • 15
  • 32
0
votes
1 answer

SQL Server Query in the debug mode: querying a table?

I have a large script that I need to debug to catch an error. There is a table in the script declared as a variable. Some t-sql makes an insert into that table. I would like to select from the table while in the debug mode. I have the "locals"…
Romano
  • 55
  • 4
0
votes
0 answers

How to exit an app without using action bar and without any physical button?

I have an android 4.0 device and it will automatically open an built in application every time when start up. The built in application is written by the company producing this product. I want to write some program for it but since I cannot bypass…
0
votes
1 answer

Intent is thrown, but action only done in Debug mode

I am working on an app, that uploads data to an FTP Server, once a Wireless connection is available. The Problem is, that the data is only uploaded if I am in Debug Mode. if (sharedpreferences.getBoolean("autoupload",false)){ …
bennnil
  • 15
  • 1
  • 5
1 2 3
8 9