Author Topic: Debugger Cannot Be Stopped  (Read 5754 times)

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Debugger Cannot Be Stopped
« on: April 27, 2019, 05:29:46 am »
I am not sure if this is a Code::Blocks, or a wxWidgets, issue.

I am able to compile and run the wxWidgets 3.0.4 application in the debugger by using the red arrowhead. After that I navigate to "Debug => Stop debugger" but the application is not stopped. Even after closing the application's window using its windows x icon in the upper right corner I cannot recompile because the debugger still has the .exe file, regardless of how many times I navigate to "Debug => Stop debugger". That the debugger is not stopped is indicated by "Stop debugger" menu item never graying out.

My Code::Blocks version is 17.12.
« Last Edit: May 02, 2019, 12:46:36 am by spflanze »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debbuger Cannot Be Stopped
« Reply #1 on: April 27, 2019, 07:53:59 am »
which compiler did you use? It dose not work if you have 32bit C::B, and you have 64bit compiler and debugger.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debbuger Cannot Be Stopped
« Reply #2 on: April 27, 2019, 01:03:19 pm »
Windows or Linux?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Debugger Cannot Be Stopped
« Reply #3 on: April 30, 2019, 04:07:14 am »
64 Bit Windows 7
Code::Blocks 17.12 32 Bit
g++ compiler in the TDM-GCC-64 folder installed from tdm64-gcc-5.1.0-2.exe which was downloaded from http://tdm-gcc.tdragon.net/index.php/download/
In the checkbox in "Project => Build options the "Target x86_64 (64bit) [-m64]" is checked.

So I need Code::Blocks 64 Bit? I do not see an option to choose 32 bit or 64 bit for Windows at https://sourceforge.net/projects/codeblocks/ . Is there a 64 bit Windows binary available? The application is a calculation intensive one, and so my interest in 64 bit.
« Last Edit: May 02, 2019, 12:46:02 am by spflanze »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Debbuger Cannot Be Stopped
« Reply #4 on: April 30, 2019, 06:19:06 am »
The CB Nightly build is 64 bit.

I did not know that an 64 bit CB was needed to run an 64 bit gdb.

Tim S.
« Last Edit: April 30, 2019, 06:31:33 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Debugger Cannot Be Stopped
« Reply #5 on: May 01, 2019, 01:21:51 am »
I typically avoid nightly builds, because I view them as works in progress with possible problems. I would appreciate any recommendations on how to get a 64 bit version of 17.12. I hope I will not have to compile this myself.
« Last Edit: May 02, 2019, 12:45:38 am by spflanze »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debbuger Cannot Be Stopped
« Reply #6 on: May 01, 2019, 01:26:18 am »
Yes, you'll have sorry... There is no 64bit release of 17.12.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Debbuger Cannot Be Stopped
« Reply #7 on: May 01, 2019, 11:38:33 am »
Nightlies are not that bad... I use them for many years in production an never had any bad bug (or even better it has a lot less bugs than the release)
If it is a special testing build then it will be written in the post and you can skip it...

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Debugger Cannot Be Stopped
« Reply #8 on: May 02, 2019, 02:54:14 am »
I upgraded to the latest Tortoise and tried to follow the instructions at: http://wiki.codeblocks.org/index.php/Nightly_Cookbook . I was unable to download Code::Blocks source from SVN. An error message dialog opened with the title "Checkout Failed!" and the message:

Code
C:\CodeBlocks SVN from http://svn.code.sf.net/p/codeblocks/code/trunk
C:\CodeBlocks SVN\src
C:\CodeBlocks SVN\src\sdk
C:\CodeBlocks SVN\src\sdk\resources
C:\CodeBlocks SVN\src\sdk\resources\lexers
Error running context: An existing connection was forcibly closed by the remote
 host.

What went wrong here?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Debugger Cannot Be Stopped
« Reply #9 on: May 02, 2019, 03:50:01 am »
I upgraded to the latest Tortoise and tried to follow the instructions at: http://wiki.codeblocks.org/index.php/Nightly_Cookbook . I was unable to download Code::Blocks source from SVN. An error message dialog opened with the title "Checkout Failed!" and the message:

Code
C:\CodeBlocks SVN from http://svn.code.sf.net/p/codeblocks/code/trunk
C:\CodeBlocks SVN\src
C:\CodeBlocks SVN\src\sdk
C:\CodeBlocks SVN\src\sdk\resources
C:\CodeBlocks SVN\src\sdk\resources\lexers
Error running context: An existing connection was forcibly closed by the remote
 host.

What went wrong here?

I always assumed a poor network connection or a slow PC on my end.
Doing "svn update ." in the svn folder will normally continue the retrieving of the source files.

Tim S.
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Debugger Cannot Be Stopped
« Reply #10 on: May 02, 2019, 03:54:26 am »
FYI: Using an nightly build of Code::Blocks is much easier than building Code::Blocks yourself!

And, the wiki page you picked was last updated in 2015; I do not remember this wiki page.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Debugger Cannot Be Stopped
« Reply #11 on: May 02, 2019, 06:40:21 am »
I attempted to update the directory as you recommended. It seemed to work at first. But then download quit with the same error after just a few files. I tried again and got a few more files, but this once again it quit with that error. On subsequent cycles of this I found I had to check the break lock check box when updating or I would get the file lock error.  After several more cycles I gave up because it appeared to me it would take too long getting it piecemeal like this.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Debugger Cannot Be Stopped
« Reply #12 on: May 05, 2019, 01:44:25 pm »
Why do you not use a prebuild nightly from the forum?

On getting the source:
You can download the source as zip archive from sourceforge:  https://sourceforge.net/p/codeblocks/code/HEAD/tree/ click on the download snapshot on the rigth
You can use git to download the source from a more or less up to date mirror: https://github.com/obfuscated/codeblocks_sf
even there you can download a source snapshot: https://github.com/obfuscated/codeblocks_sf/archive/master.zip

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Debugger Cannot Be Stopped
« Reply #13 on: May 08, 2019, 03:06:37 am »
Are the prebuilt nightlies 32 Bit or 64 Bit?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Debugger Cannot Be Stopped
« Reply #14 on: May 08, 2019, 08:48:32 am »
64bit
I was thinking this is written somewhere, but i was wrong....