Questions tagged [debugbreak]

DebugBreak is the user-mode break routine of Microsoft Windows.

DebugBreak is the user-mode break routine of Microsoft Windows.

26 questions
1
vote
1 answer

why getting DebugBreak() on deleting an object

I have an MFC dialog, which is called Dlg1 myobject* Dlg1 = new myobject(); This dialog has a parent dialog called A; I have a function in A, which is called on closing: A::Destroy() { if(Dlg1 ) delete Dlg1; // this is…
Samer
  • 1,923
  • 3
  • 34
  • 54
1
vote
0 answers

__debugbreak hangs on background thread

I'm trying to debug gnarly threading issue (in C++ code on Windows) that takes millions of runs to reproduce. "printf debugging" is not giving me enough information so I'd like to break into the debugger at the first point I detect an issue. I've…
philsquared
  • 22,403
  • 12
  • 69
  • 98
0
votes
0 answers

A breakpoint instruction (__debugbreak() statement or a similar call) was executed on SQLExecDirect CALL

I'm running a C++ visual studio 2022 console application and have a very simple SQL step the one randomly give me an error, the error are always in the same call SQLExecDirect() but happens around 1 in 100 times, I already try to catch the error and…
0
votes
0 answers

QT QSQLDatabase __debugbreak() issue

I want to read sizes information from a database table and want to store them in a map. I use visual studio 2022 with qt tools addon and qt 6.4. The m_sizes map is a local variable in a configurationmanager class, the manager class lives as long as…
user2377283
  • 365
  • 1
  • 2
  • 12
0
votes
1 answer

A breakpoint instruction __debugbreak was executed, and i don't understand why

It is being called at the end of program, in the "delete" sequence, I guess. The program is working well all the way, except the end. #include #include //Завдання 2, покажчикі using namespace std; int main() { int n = 10; …
0
votes
0 answers

Debugging problems with deepcopy of class implementing __getattr__

I have a class which has an instance variable of type enum.Flag. It implements __getattr__ so that i can return the boolean state of a flag given by name. The code works fine when running without debugging, producing the expected output. However,…
0
votes
1 answer

SharpDevelop and DebugBreak (F12 key)

In Delphi I got used to pressing F12 whenever my program becomes irresponsive to see what the Main thread is doing, mainly for stack trace but sometimes also local vars. Now I am playing around with SharpDevelop and can't see anything quite like…
Anton Duzenko
  • 2,366
  • 1
  • 21
  • 26
0
votes
1 answer

DebugBreak for iPad

I want to make DebugBreak for iPad and found that asm{trap} should work, but there is a problem: if I use asm{trap} I have error: asm blocks not enabled, use `-fasm-blocks'. If I enable -fasm-blocks I have another error: -fasm-blocks option not…
Mircea Ispas
  • 20,260
  • 32
  • 123
  • 211
0
votes
1 answer

Leave INT3 breaks to application's exception handler on visual studio

I'm actually developing a DLL that is injected into a process. This DLL sets several INT3 breaks around the executable's code which is called a lot. My DLL's exception handler catches those INT3 to change several register values and stuff like this,…
WoLfulus
  • 1,948
  • 1
  • 14
  • 21
0
votes
1 answer

Getting DebugBreak to work in Fortran

I found the following article: http://software.intel.com/en-us/articles/intel-fortran-compiler-microsoft-debugging-function-debugbreak/ Unfortunately when I tried to implement this code and compiled I received the following error: Error 1 error…
JustADude
  • 2,619
  • 7
  • 31
  • 45
0
votes
1 answer

VS2010 Remote debugger stopping where is no breakpoint

I am remotely debugging a dll (C++, unmanaged) for Microsoft FSX (I do not know whether this matters). The dll is compiled as "Multi-threaded-dll", since it does not work as "Multi-threaded-dll debug". My dll currently just contains a DllStart and…
1
2