Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: spflanze on April 27, 2019, 05:29:46 am

Title: Debugger Cannot Be Stopped
Post by: spflanze 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.
Title: Re: Debbuger Cannot Be Stopped
Post by: ollydbg 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.
Title: Re: Debbuger Cannot Be Stopped
Post by: oBFusCATed on April 27, 2019, 01:03:19 pm
Windows or Linux?
Title: Re: Debugger Cannot Be Stopped
Post by: spflanze 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.
Title: Re: Debbuger Cannot Be Stopped
Post by: stahta01 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.
Title: Re: Debugger Cannot Be Stopped
Post by: spflanze 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.
Title: Re: Debbuger Cannot Be Stopped
Post by: oBFusCATed on May 01, 2019, 01:26:18 am
Yes, you'll have sorry... There is no 64bit release of 17.12.
Title: Re: Debbuger Cannot Be Stopped
Post by: BlueHazzard 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...
Title: Re: Debugger Cannot Be Stopped
Post by: spflanze 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?
Title: Re: Debugger Cannot Be Stopped
Post by: stahta01 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.
 
Title: Re: Debugger Cannot Be Stopped
Post by: stahta01 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.
Title: Re: Debugger Cannot Be Stopped
Post by: spflanze 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.
Title: Re: Debugger Cannot Be Stopped
Post by: BlueHazzard 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
Title: Re: Debugger Cannot Be Stopped
Post by: spflanze on May 08, 2019, 03:06:37 am
Are the prebuilt nightlies 32 Bit or 64 Bit?
Title: Re: Debugger Cannot Be Stopped
Post by: BlueHazzard on May 08, 2019, 08:48:32 am
64bit
I was thinking this is written somewhere, but i was wrong....
Title: Re: Debugger Cannot Be Stopped
Post by: Pecan on May 09, 2019, 07:10:58 pm
http://forums.codeblocks.org/index.php/topic,23126.msg157727.html#msg157727

Compiler:
======
Mingw_w64 : 8.1.0  (https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download)

In the following configuration :
Version : 8.1.0
Architecture : x86_64
Threads : posix
Exception : seh
Build Revision : 0


WX:
===
The nightly is still using wx 3.1.1, in order to build it on windows a little patch is needed :
Code
===> https://github.com/wxWidgets/wxWidgets/commit/424f64f27d94f83ed946ebfcf9b9543c828f9f25
include/wx/msw/private.h
    static HANDLE InvalidHandle()
    {
        return static_cast<HANDLE>(INVALID_VALUE);
        return reinterpret_cast<HANDLE>(INVALID_VALUE);
    }
so rather easy to adjust.

The build instruction is :
Code
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb CXXFLAGS+="-std=c++11"


PS : the same instruction (minus that patch) work also to build wx 3.1.2, and this one has a zillion less warnings during the build :-)