Code I am using in my wizard script file
project.AddToExtensions(_T("debugger/remote_debugging:target=Debug")); project.AddToExtensions(_T("debugger/remote_debugging/options:conn_type=0")); project.AddToExtensions(_T("debugger/remote_debugging/options:serial_baud=115200")); local additional_commands1 = _T("monitor halt\n") + _T("monitor flash erase_address 0x0 0x10000\n") + _T("load bin/Debug/\n") + projectName + _T(".elf\n") + _T("file bin/Debug/") + projectName + _T(".elf\n") + _T("monitor halt\n"); project.AddToExtensions(_T("debugger/remote_debugging/options:additional_cmds=") + additional_commands1); project.AddToExtensions(_T("debugger/remote_debugging:target=Release")); project.AddToExtensions(_T("debugger/remote_debugging/options:conn_type=0")); project.AddToExtensions(_T("debugger/remote_debugging/options:serial_baud=115200")); local additional_commands2 = _T("monitor halt\n") + _T("monitor flash erase_address 0x0 0x10000\n") + _T("load bin/Release/\n") + projectName + _T(".elf\n") + _T("file bin/Release/") + projectName + _T(".elf\n") + _T("monitor halt\n"); project.AddToExtensions(_T("debugger/remote_debugging/options:additional_cmds=") + additional_commands2);
Expected outcome:
<remote_debugging target="Debug">
<options conn_type="0" serial_baud="115200" additional_cmds="monitor halt;monitor flash erase_address 0x0 0x10000;load bin/Debug/rth.elf;file bin/Debug/rth.elf;monitor halt; /><br> </remote_debugging><br> <remote_debugging target=" Release"="">
Is this a patch?
What does it going to fix?
Or what do you want our devs to do? Thanks.
If you have problems with AddExtension this is related:
https://sourceforge.net/p/codeblocks/tickets/513/
This should be possible now. Check revisions from 11857 to 11860. The first one adds new better api for modifying extensions and later revisions make the debugger plugin to respect changes made to the extension using this new api. The old api (project.AddToExtensions) should also work and it hasn't been removed.