Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Compiling codeblocks original source code to develop my own customized codeblock
BlueHazzard:
--- Quote ---any way to debug Codeblocks sdk code while building
--- End quote ---
you can't debug c/c++ code while building... You can debug code while execution... And yes you can debug codeblocks within codeblocks
--- Quote ---I mean, suppose I made some changes in different file of codeblocks sdk and I want to check its effect before releasing Binary, Is it a way to debug?
--- End quote ---
no idea what you want to do... But "normally" you have to execute code to test it. There are some static code analyzer but i doubt this is a thing you want.
anandamu16:
--- Quote ---You can debug code while execution... And yes you can debug codeblocks within codeblocks
--- End quote ---
I tried to debug the plugin code. I first build the plugin and then press debugger/continue icon with setting breakpoints at some places within code.
But the code gets debugged itself in no time and didn't stopped at any breakpoints. I mean while debugging, if I can set the breakpoints, code must get stopped at that breakpoint.
I have added the debugger output for your reference. I am doing something wrong or anything else is a problem
anandamu16:
I realized, after building the code, I need to run i.e; execute the code. As soon as I execute the code, it gaves me the termination error with status -1
BlueHazzard:
Please always post the whole text from the log windows as text within code tags (the # symbol in the post editor) and not images. For first you are missing a lot information for the second it uses a lot more space on the server and for the third it is not readable on mobile devices...
--- Quote ---I tried to debug the plugin code. I first build the plugin and then press debugger/continue icon with setting breakpoints at some places within code.
But the code gets debugged itself in no time and didn't stopped at any breakpoints. I mean while debugging, if I can set the breakpoints, code must get stopped at that breakpoint.
I have added the debugger output for your reference. I am doing something wrong or anything else is a problem
--- End quote ---
Please post the full debugger log and a rebuild log. I think your project is not configured properly...
--- Quote ---I realized, after building the code, I need to run i.e; execute the code. As soon as I execute the code, it gaves me the termination error with status -1
--- End quote ---
well your code crashes, and you need the debugger to find the problem...
anandamu16:
Sorry, I have added the build log, kindly check.
--- Code: ----------------- Clean: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
Cleaned "MenuPlugin - default"
-------------- Build: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -g -Wno-deprecated-declarations -Wno-unused-local-typedefs -std=gnu++11 -IC:\zbcqcm\codeblocks_svn_code\code\src\include -IC:\zbcqcm\codeblocks_svn_code\code\src\sdk\wxscintilla\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\include -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswu -IC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll\mswud -IC:\MinGW\include -IC:\zbcqcm\codeblocks_svn_code\code\src\sdk\wxscintilla\include -IC:\zbcqcm\codeblocks_svn_code\code\src\include -IC:\zbcqcm\codeblocks_svn_code\code\src\include\tinyxml -c C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\MenuPlugin.cpp -o .objs\MenuPlugin.o
mingw32-g++.exe -shared -Wl,--dll -LC:\zbcqcm\codeblocks_svn_code\code\src\devel -LC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll -LC:\wxMSW-2.8.12\wxMSW-2.8.12\lib\gcc_dll -L"C:\Program Files (x86)\CodeBlocks" .objs\MenuPlugin.o -o MenuPlugin.dll -mthreads -lcodeblocks -lwxmsw28u
Output file is MenuPlugin.dll with size 343.59 KB
Running target post-build steps
zip -j9 MenuPlugin.zip manifest.xml
zip -j9 MenuPlugin.cbplugin MenuPlugin.dll MenuPlugin.zip
updating: manifest.xml (152 bytes security) (deflated 54%)
updating: MenuPlugin.dll (152 bytes security) (deflated 70%)
updating: MenuPlugin.zip (152 bytes security) (deflated 14%)
Process terminated with status 0 (1 minute(s), 18 second(s))
0 error(s), 0 warning(s) (1 minute(s), 18 second(s))
-------------- Run: default in MenuPlugin (compiler: GNU GCC Compiler)---------------
Checking for existence: C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\MenuPlugin.dll
Executing: "C:\zbcqcm\codeblocks_svn_code\code\src\devel\codeblocks.exe" (in C:\Users\zbcqcm\Documents\Codeblocks_SVN\MenuPlugin\.)
Process terminated with status -1 (0 minute(s), 9 second(s))
--- End code ---
My plugin is building fine besides It is installing properly into codeblocks. Error occurs only when I try to run my plugin.
P.S I will make sure to put the build log in text instead of images, Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version