User forums > Embedded development
Update the ARM project template
tridentsx:
One more thing how can i debug those scripts ? Is there someway to follow the exection flow ?
Thanks /// Carl
oBFusCATed:
You can use the Log function, also see the view -> script console
On linux you're running as simple user, but the scripts are inside /usr/something where only root can write.
Move the file to .codeblocks/share/scritps (or something like that).
Probably you'll have to rename the file...
tridentsx:
I am trying to use the log function but I am not successful. I am adding this to the script
Log(_T("Running STM32 setup script"));
Where should I see the output? I don't get it in the codeblocks-debug.log and I cant see it in the Log & Others ?
Thanks for your help.
MortenMacFly:
--- Quote from: tridentsx on January 20, 2011, 06:31:13 am ---Where should I see the output? I don't get it in the codeblocks-debug.log and I cant see it in the Log & Others ?
--- End quote ---
To enable the debug log you must pass it as an option to C::B like on start-up like:
./codeblocks --debug-log
tridentsx:
Thanks for your kind help. I tried your suggestion however it didnt seem to work.
Below is the content of the log file. It doesn't contain the debug Log entry that I have added to the ARM
script before starting codeblocks.
I did execute the right script I know that because I could see other changes in the welcome screen that I
did at same time as I added the Log(_T("Running STM32 setup script")).
Is that the right syntax to add something to a wizard script?
Regards /// Carl
--- Code: ---Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
EnvVars: loaded
ClassWizard: loaded
FilesExtensionHandler: loaded
CodeStat: loaded
ProjectsImporter: loaded
wxSmith: loaded
wxSmithMime: loaded
ToDoList: loaded
ThreadSearch: loaded
HeaderFixup: loaded
Compiler: loaded
RegExTestbed: loaded
wxSmithContribItems: loaded
SymTab: loaded
MouseSap: loaded
CB_Koders: loaded
DoxyBlocks: loaded
Abbreviations: loaded
Exporter: loaded
Cscope: loaded
BYOGames: loaded
Valgrind: loaded
CppCheck: loaded
EditorTweaks: loaded
wxSmithAui: loaded
OpenFilesList: loaded
lib_finder: loaded
Profiler: loaded
HexEditor: loaded
CodeCompletion: loaded
Cccc: loaded
AutoVersioning: loaded
IncrementalSearch: loaded
BrowseTracker: loaded
ScriptedWizard: loaded
Autosave: loaded
NassiShneidermanPlugin: loaded
AStylePlugin: loaded
Debugger: loaded
copystrings: loaded
CodeSnippets: loaded
cbDragScroll: loaded
ReopenEditor: loaded
cbKeyBinder: loaded
Environment variables plugin activated
Class wizard plugin activated
Files extension handler plugin activated
Code statistics plugin activated
Foreign projects importer plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Todo List plugin activated
ThreadSearch plugin activated
Header Fixup plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU ARM GCC eabi Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
Regular expressions testbed plugin activated
wxSmith - Contrib Items plugin activated
Symbol Table Plugin plugin activated
MouseSap plugin activated
Koders query plugin activated
DoxyBlocks plugin activated
Abbreviations plugin activated
Source Exporter plugin activated
Cscope plugin activated
BYO Games plugin activated
Valgrind plugin activated
CppCheck plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks plugin activated
wxSmith - Aui plugin activated
Open files list plugin activated
Library finder plugin activated
Code profiler plugin activated
HexEditor plugin activated
Code completion plugin activated
Cccc plugin activated
AutoVersioning plugin activated
IncrementalSearch plugin activated
BrowseTracker plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Autosave plugin activated
NassiShneidermanPlugin plugin activated
Source code formatter (AStyle) plugin activated
Debugger plugin activated
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version