Author Topic: Just-in-Time Debugging  (Read 3918 times)

Offline lbertolotti

  • Multiple posting newcomer
  • *
  • Posts: 31
Just-in-Time Debugging
« on: July 30, 2017, 01:46:25 am »
Can I enable Just-in-Time Debugging in Code::Blocks?
Languages: C/C++, SQL, HTML, VB, Python and R

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Just-in-Time Debugging
« Reply #1 on: July 30, 2017, 02:23:06 am »
What is just in time debugging? Do you mean the hover with the mouse over a variable and show the value in a tool tip?
This is done with Settings->Debugger->GDB debugger->Evaluate expression under cursor.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Just-in-Time Debugging
« Reply #2 on: July 30, 2017, 02:41:50 am »
If you are talking about post mortem debugging on windows:
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/enabling-postmortem-debugging

There is no automatic way to set this up for codeblocks, you will have to set the registry entries by yourself. Also i don't think that starting the debugger from command line is at the moment possible. BUT: you can start gdb from the command line...
The same is true for cdb...
The problem here is: Codelbocks is made to debug in a loaded project (paths, files, debugger settings are stored in the project file) If you use post mortem debugging codeblocks does not know where the project is and so he can not load the needed information.... But i am not sure about all this, maybe someone has a solution for you...

Offline lbertolotti

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: Just-in-Time Debugging
« Reply #3 on: July 30, 2017, 02:57:46 am »
Languages: C/C++, SQL, HTML, VB, Python and R